Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

├── UNMET PEER DEPENDENCY generator-karma@>=0.9.0

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 ?

like image 442
Baldráni Avatar asked Aug 03 '16 19:08

Baldráni


People also ask

What does unmet Peer dependency mean?

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.

How do you resolve peer 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.

What is a peer dependency?

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.


1 Answers

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.

like image 68
kabangi julius Avatar answered Oct 20 '22 17:10

kabangi julius