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

Error when npm install the project #135

Closed

Description

@ygmgbg

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/core@2.0.0-rc.2 does not satisfy its siblings' peerDependencies requirements!
162 error peerinvalid Peer @angular/common@2.0.0-rc.2 wants @angular/core@2.0.0-rc.2
162 error peerinvalid Peer @angular/compiler@2.0.0-rc.2 wants @angular/core@2.0.0-rc.2
162 error peerinvalid Peer @angular/http@2.0.0-rc.2 wants @angular/core@2.0.0-rc.2
162 error peerinvalid Peer @angular/platform-browser@2.0.0-rc.2 wants @angular/core@2.0.0-rc.2
162 error peerinvalid Peer @angular/platform-browser-dynamic@2.0.0-rc.2 wants @angular/core@2.0.0-rc.2
162 error peerinvalid Peer @angular/router@2.0.0-rc.2 wants @angular/core@^2.0.0-rc
162 error peerinvalid Peer @angular/router-deprecated@2.0.0-rc.2 wants @angular/core@^2.0.0-rc
162 error peerinvalid Peer @angular/upgrade@2.0.0-rc.2 wants @angular/core@2.0.0-rc.2
162 error peerinvalid Peer angular2-in-memory-web-api@0.0.11 wants @angular/core@2.0.0-rc.1
163 verbose exit [ 1, true ]

Activity

  1. timz commented on Jun 17, 2016

    @timz

    update npm:
    npm install npm -g

  2. added a commit that references this issue on Jun 17, 2016
    6cf2e5a
  3. added a commit that references this issue on Jun 17, 2016
    936ea67
  4. filipesilva commented on Jun 17, 2016

    @filipesilva
    Contributor

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

  5. ygmgbg commented on Jun 18, 2016

    @ygmgbg
    Author

    thank you

  6. airhork commented on Jun 27, 2016

    @airhork

    @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/common@2.0.0-rc.3 wants @angular/core@2.0.0-r
    c.3
    npm ERR! peerinvalid Peer @angular/compiler@2.0.0-rc.3 wants @angular/core@2.0.0
    -rc.3
    npm ERR! peerinvalid Peer @angular/forms@0.1.1 wants @angular/core@2.0.0-rc.3
    npm ERR! peerinvalid Peer @angular/http@2.0.0-rc.3 wants @angular/core@2.0.0-rc.
    3
    npm ERR! peerinvalid Peer @angular/platform-browser@2.0.0-rc.3 wants @angular/co
    re@2.0.0-rc.3
    npm ERR! peerinvalid Peer @angular/platform-browser-dynamic@2.0.0-rc.3 wants @an
    gular/core@2.0.0-rc.3
    npm ERR! peerinvalid Peer @angular/router@3.0.0-alpha.8 wants @angular/core@^2.0
    .0-rc.2
    npm ERR! peerinvalid Peer @angular/router-deprecated@2.0.0-rc.2 wants @angular/c
    ore@^2.0.0-rc
    npm ERR! peerinvalid Peer @angular/upgrade@2.0.0-rc.3 wants @angular/core@2.0.0-
    rc.3
    npm ERR! peerinvalid Peer angular2-in-memory-web-api@0.0.12 wants @angular/core@
    2.0.0-rc.2

  7. Foxandxss commented on Jun 27, 2016

    @Foxandxss
    Member

    That node is reaaaaaaaaaally old.

  8. airhork commented on Jun 27, 2016

    @airhork

    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

  9. filipesilva commented on Jun 27, 2016

    @filipesilva
    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?

  10. Foxandxss commented on Jun 27, 2016

    @Foxandxss
    Member

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

  11. airhork commented on Jun 27, 2016

    @airhork

    ok, thanks for the quick feedback. installing.

  12. airhork commented on Jun 27, 2016

    @airhork

    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 angular2-in-memory-web-api@0.0.12 wants @angular/core@2.0.0-rc.2
    but core is already 3.
    guess still better have a fix on it?

  13. Foxandxss commented on Jun 27, 2016

    @Foxandxss
    Member

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

  14. JessRascal commented on Jun 27, 2016

    @JessRascal

    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?

  15. Foxandxss commented on Jun 27, 2016

    @Foxandxss
    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

  16. cooervo commented on Aug 4, 2016

    @cooervo

    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/commmon@2.0.0-rc.4 does not satisfy its siblings' peerDependencies requirements!

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

  17. filipesilva commented on Aug 10, 2016

    @filipesilva
    Contributor

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

  18. pashaproton commented on Aug 26, 2016

    @pashaproton

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

  19. mxfp0 commented on Sep 16, 2016

    @mxfp0

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

  20. madrahimov commented on Sep 23, 2016

    @madrahimov

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

  21. emaalouf commented on Apr 29, 2017

    @emaalouf

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions