I am trying to use lottie-vuejs in my project. I did the npm install and follow the guidance given here
https://www.npmjs.com/package/lottie-vuejs.
But I am getting
Module not found: Error: Can't resolve 'lottie-vuejs'.
Sample sandbox
Try to downgrade to the 0.3.6 version by uninstalling the current one :
npm uninstall --save lottie-vuejs
and install the stable version 0.3.6 as follows :
npm install lottie-vuejs#0.3.6
the lottie-vuejs require other dependencies which is lottie-web and axios. You might need to include it as well. But I would suggest you staright away use the "lottie-web" package.
Here is the working example
https://codesandbox.io/s/funny-mendeleev-z0rkl?file=/src/components/HelloWorld.vue
Related
I am using angular 7 with
"angular2-hotkeys": "^2.1.4",
..
At the running angular project, I got that error:
ERROR in node_modules/angular2-hotkeys/lib/hotkey.model.d.ts(24,9): error TS1086: An accessor cannot be declared in an ambient context.
Finally, I got the answer, install the following package with the correct version
npm install angular2-hotkeys#2.1.4
instead of install
npm install angular2-hotkeys
You should install the exact version mention in the package.json. Sometimes latest version will not be working smoothly with other packages and versions
try doing
ng update #angular/core #angular/cli
npm install angular2-hotkeys#latest
I'm trying to install a package 'Kurento-client' via npm but it gives error in installing its own dependencies (bufferutil and utf-8-validate). Error also mentions 'node-gyp rebuild'
Here is the screenshot of the error:
Can you please tell, what should I do or change?
When I install those 2 dependencies separately (bufferuil and utf-8-validate), they install successfully with the latest version.
But the Kurento-client is installing their old version. I don't know why. I need only kurento-client to be installed.
After searching for a while, I solved it by dropping the npm version. The reason is that some packages have dependencies which they need to install, and in our case, those dependencies were of the old version which cannot correlate with the newer version of npm. Either you have to update those ones separately or drop your npm version. Hope it helps someone!
Found this post that appears to resolve the issues.
https://github.com/angular/angular-cli/issues/8359
Sorry but it is not clear to me what is the next step to fix this issue?
Which version of angular cli should I upgrade to fix this?
Note that this happens in compiling in angular production mode.
This should do the trick:
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli#1.4.9
People in the post generally mention no issues after going to CLI 1.4.9
Also, the Angular verison might need to be dropped down as well if just doing the CLI doesn't work. See jonathanbruno's comment on that page
I specifically tried the following
npm uninstall md5-hex --save
npm install md5-hex --save
and then did ember s. It didn't work
Searched for ./lib/md5-hex throughout the project and replaced it with 'md5-hex'. It fixed that particular error.
When i'm installing node-fetch
Here's a link
I'm getting that warning
`-- node-fetch#1.6.3
npm WARN motivation_bot#1.0.0 No repository field.
How to resolve the problem?
npm often gives warning while installing packages. In 99%, these are mistakes made by the creator of the package, in your cause motivation_bot. You can ignore them all if your package works like it should do. You will get warnings nearly every installation so don't care about it ^^.
Follow the instructions and install the package using the correct syntax (npm install node-fetch --save). After that, check your dependencies in the package.json file. If you find the package "node-fetch", you don't need to worry about the warning message.