Skip to content

EPEERINVALID during npm install (Quick start guide) #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MartinMa opened this issue Apr 8, 2016 · 8 comments
Closed

EPEERINVALID during npm install (Quick start guide) #501

MartinMa opened this issue Apr 8, 2016 · 8 comments

Comments

@MartinMa
Copy link

MartinMa commented Apr 8, 2016

  • I'm submitting a ...
    [x ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
  • Do you want to request a feature or report a bug?
    bug
  • What is the current behavior?
    When I run npm install on a fresh git clone, I get the following peerDependencies error.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.4.2
npm ERR! npm  v2.15.0
npm ERR! code EPEERINVALID

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

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Martin\Documents\Projects\angular2-webpack-starter\npm-debug.log
  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    Follow the Quick start guide from README.md. The error will show up in the console after calling npm install.
  • What is the expected behavior?
    No EPEERINVALID error message.
  • What is the motivation / use case for changing the behavior?
    Getting started process shouldn't lead to errors.
  • Please tell us about your environment:
    Windows 8.1
    node v4.4.2
    npm v2.15.0
  • Angular version: 2.0.0-beta.14
  • Browser: [not applicable]
  • Other information
    I seem to have fixed it by switching from "rxjs": "5.0.0-beta.4" to "rxjs": "5.0.0-beta.2".
@roelleor
Copy link

roelleor commented Apr 8, 2016

same problem here:
mac osx
node v4.1.2
npm v2.14.4

@CristyTarantino
Copy link

👍

@PatrickJS
Copy link
Owner

if yu update to npm 3 via npm install -g npm@3 then you should be ok. I can also fix it for npm 2 users.
related npm/npm#6551

@MartinMa
Copy link
Author

@gdi2290 Thanks for the info. I upgraded to npm 3 (v3.8.7) via npm-windows-upgrade (it seems to be a special package for this purpose) and ran npm install again (after clearing the node_modules folder and the npm cache). I don't get an error now and the demo project seems to work, but I still get a warning:
UNMET PEER DEPENDENCY [email protected]
and
npm WARN [email protected] requires a peer of [email protected] but none was installed.

I would suggest to either update the guide, so people will know, that they need npm version >= 3 or update the dependencies in package.json as proposed (when that's the correct fix).

@MartinMa
Copy link
Author

Fixed by a37c92b and 1205e1a (downgrade rxjs). Closing. 🍺 👍

@miteshpant
Copy link

Still getting this issue

MITESH@MITESH-THINK MINGW32 ~/Desktop/development/angular-quickstart
$ npm install -g npm
C:\Users\MITESH\AppData\Roaming\npm\npm -> C:\Users\MITESH\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
[email protected] C:\Users\MITESH\AppData\Roaming\npm\node_modules\npm

MITESH@MITESH-THINK MINGW32 ~/Desktop/development/angular-quickstart
$ npm install
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.1.1
npm ERR! npm v2.14.4
npm ERR! code EPEERINVALID

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

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\MITESH\Desktop\development\angular-quickstart\npm-debug.log

@mukesh-yadav2170
Copy link

mukesh-yadav2170 commented Jan 3, 2017

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EPEERINVALID

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

npm ERR! Please include the following file with any support request:
npm ERR! /Users/vipulsharma/mukesh/ionic2/Ionic2TabTranlation/npm-debug.log

This error has occurred several time on my mac os
Finding many solutions but not work, Simply I update npm version "v2.15.8" to npm version "3"
and work for me

Amazing it work

@dprager
Copy link

dprager commented Feb 12, 2017

Wow, this helped me out so much clearifying signalr and combining it with Angular 2. Awesome post!!

Thank you for this

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

No branches or pull requests

7 participants