0

I just can't understand how to fix these peer dependencies.

I tried to install angular-cli with NPM globally but always results in:

npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "-f" "angular-cli"
npm ERR! node v4.6.0
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]

I was thinking NPM was taking care of such version differences.. what's going on?

I tried what I found online: clearing cache, installing with --force, but nothing changes this. I feel like I'm missing something basic here.

1 Answer 1

2

i got the same error when i was installing the angular-cli with npm. but for me version was updated. 1)node v6.6.0

2)npm v3.10.3.

Then after i followed the following steps and the error was solved for me. Try this,it may help.

1.npm uninstall -g angular-cli

2.npm cache clean

3.npm install -g node-gyp

4.npm install -g node-pre-gyp

5.npm install -g angular-cli

Sign up to request clarification or add additional context in comments.

4 Comments

i hope it will work for you,if same or any other error, let me know
It did work but especially by updating the npm version to v3. maybe set this to be more precise in your answer for future reference. Thanks!
last suggestion i think so for this type of error , you should try to first update all of your global packages
Actually I didn't notdiced I was running v2, don't understand, this was a fresh install

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.