Reputation: 115
I searched and read many posts about "npm UNMET PEER DEPENDENCY" issues. But this one is still confusing:
Hulk node_modules # npm install -g [email protected]
- [email protected] node_modules/rxjs/node_modules/symbol-observable
/usr/lib
└── [email protected]
Hulk node_modules # npm install -g zone.js@^0.6.6
/usr/lib
└── [email protected]
Hulk node_modules #
Hulk node_modules #
Hulk node_modules #
Hulk node_modules #
Hulk node_modules # npm install -g @angular/core
/usr/lib
├── @angular/[email protected]
├── UNMET PEER DEPENDENCY [email protected]
└── UNMET PEER DEPENDENCY zone.js@^0.6.6
npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of zone.js@^0.6.6 but none was installed.
First when I try to install "@angular/core", npm complained about dependencies.
I installed those dependencies, it still complains.
Why? Thanks for your insights.
Upvotes: 1
Views: 1009
Reputation: 2660
Try:
In unix terminal:
remove your node modules:
$ rm -rf node_modules
clear cache:
$ npm cache clean
reinstall (assuming your package.json is correct):
$ npm install
Upvotes: 2