So basically I want to understand why when I run npm install sass-loader node-sass --save-dev
I get this error
├── UNMET PEER DEPENDENCY generator-karma@>=0.9.0
However it's clear that Karma is installed since when I run npm install generator-karma
I see that :
└─┬ [email protected] <--- Which mean karma is there...
└─┬ [email protected]
├── [email protected]
...
I've read answer explaining I should use npm install -g grunt-cli bower yo generator-karma generator-angular
but this is not helping much.
Should I uninstall and reinstall a clean node_modules
?
UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package. json file is not met. Check the warnings carefully and update the package. json file with correct versions of dependencies.
Peer dependencies are resolved from dependencies installed higher in the dependency graph, since they share the same version as their parent. That means that if [email protected] has two peers ( bar@^1 and baz@^1 ) then it might have multiple different sets of dependencies in the same project.
A peer dependency specifies that our package is compatible with a particular version of an npm package. If a package doesn't already exist in the node_modules directory, then it is automatically added. As you install a package, npm will automatically install the dev dependencies.
npm no longer installs module dependencies automatically. That means you have to install the dependencies modules yourself. Basically if you run npm install generator-karma@>=0.9.0
and then run the your previous npm install
command you should be good to go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With