Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Error when npm install the project #135

Closed
ygmgbg opened this issue Jun 17, 2016 · 19 comments
Closed

Error when npm install the project #135

ygmgbg opened this issue Jun 17, 2016 · 19 comments

Comments

@ygmgbg
Copy link

ygmgbg commented Jun 17, 2016

I got this error when I ran npm install

157 error Windows_NT 10.0.10586
158 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
159 error node v4.4.5
160 error npm v2.15.5
161 error code EPEERINVALID
162 error peerinvalid The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!
162 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
162 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
162 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
162 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
162 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
162 error peerinvalid Peer @angular/[email protected] wants @angular/core@^2.0.0-rc
162 error peerinvalid Peer @angular/[email protected] wants @angular/core@^2.0.0-rc
162 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
162 error peerinvalid Peer [email protected] wants @angular/[email protected]
163 verbose exit [ 1, true ]

@timz
Copy link

timz commented Jun 17, 2016

update npm:
npm install npm -g

@filipesilva
Copy link
Contributor

Sorry, one of the dependencies was left in a old one. It should be fixed now.

@ygmgbg
Copy link
Author

ygmgbg commented Jun 18, 2016

thank you

@airhork
Copy link

airhork commented Jun 27, 2016

@filipesilva

seems this issue happens again?

npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package @angular/core does not satisfy its siblings' pe
erDependencies requirements!
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
c.3
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
-rc.3
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected].
3
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/co
[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @an
gular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/core@^2.0
.0-rc.2
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/c
ore@^2.0.0-rc
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
rc.3
npm ERR! peerinvalid Peer [email protected] wants @angular/core@
2.0.0-rc.2

@Foxandxss
Copy link
Member

That node is reaaaaaaaaaally old.

@airhork
Copy link

airhork commented Jun 27, 2016

indeed, it probably an old node
but I assume the error is because of the upgrade from 2.0.0-rc.2 to 2.0.0-rc.
3? No

@filipesilva
Copy link
Contributor

@airhork I think it's actually because of node, I know that similar peerDeps issues are solved on newer versions. Can you try node 5 or 6?

@Foxandxss
Copy link
Member

Is NPM probably the problematic one, but I recommend Node 5 at least.

@airhork
Copy link

airhork commented Jun 27, 2016

ok, thanks for the quick feedback. installing.

@airhork
Copy link

airhork commented Jun 27, 2016

Thanks for the help.
I updated to the latest node, it need can skip this issue.

I saw the major version for node (official site) is still 4.4.6, which also have this issue.
reason seems the [email protected] wants @angular/[email protected]
but core is already 3.
guess still better have a fix on it?

@Foxandxss
Copy link
Member

That is expected and will be fixed soon. Still with that, it should work.

@JessRascal
Copy link

I'm having the same issue when trying to deploy to AWS which uses node 4.4.3 (npm 2.15.1) , is there any way around this or am I stuck until a fix is in place?

@Foxandxss
Copy link
Member

I am not really sure if a solution for npm 2.x is going to come.

Can't it be updated to latest npm?

npm i -g npm

@cooervo
Copy link

cooervo commented Aug 4, 2016

Hi there I'm on node v5.10.0 and after trying meteor npm install --save angular2-meteor I get the same error:

The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!

I already tried npm install npm -g as suggested above and npm install angular2

@filipesilva
Copy link
Contributor

@cooervo you'll have to ask at the angular2-meteor repo. We don't control the dependencies they use.

@pashaproton
Copy link

Guys, I had the same error. For me helps npm i -g npm

@herlon214
Copy link

Update npm (npm install npm -g) solved for me!

@madrahimov
Copy link

Thanks you !!! (npm install npm -g) solved my issue also

@emaalouf
Copy link

I found something awesome in regards to node
anything you have a problem with just uninstall and reinstall it and then reinstall any dependencies they might require!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests