Skip to content
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

Peer Dependency error. #531

Closed
ngyangjo opened this issue Apr 24, 2018 · 2 comments
Closed

Peer Dependency error. #531

ngyangjo opened this issue Apr 24, 2018 · 2 comments

Comments

@ngyangjo
Copy link

Hi,
While doing a npm install, I'm getting "The package react does not satisfy its siblings' peerDependencies requirements!" error.

Full Error Stack
`npm WARN unmet dependency which is version 0.14.7
npm ERR! Darwin 17.5.0
npm ERR! argv "/Users/abiraj/.nvm/versions/v0.12.0/bin/node" "/Users/abiraj/.nvm/versions/v0.12.0/bin/npm" "install" "react-autosuggest" "--save"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^15.0.2 || ^16.0.0-beta || ^16.0.0
npm ERR! peerinvalid Peer [email protected] wants react@>=15
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0 || ^16.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^15.3.0 || ^16.0.0
npm ERR! peerinvalid Peer [email protected] wants react@~0.13.x || ~0.14.x || ^15.0.0 || ^16.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^16.0.0-beta.5
npm ERR! peerinvalid Peer [email protected] wants react@>=15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.9 || ^15.0.0 || ^16.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^15.0.0 || ^16.0.0
npm ERR! peerinvalid Peer [email protected] wants react@>=15
npm ERR! peerinvalid Peer [email protected] wants react@>=0.14
npm ERR! peerinvalid Peer [email protected] wants react@>= 15.0
npm ERR! peerinvalid Peer [email protected] wants react@>=0.14.7
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0`

My package.json has react^16.0.0. Is there a way to make it work for react^16.0.0. As per the error, it requires [email protected]. Installing [email protected] didn't work too.

@ngyangjo
Copy link
Author

Seems to be a problem in my dev environment. I deleted the node modules folder and ran
npm install
npm update

and it works now.

@inform880
Copy link

inform880 commented Jun 26, 2018

@ngyangjo I'm getting this same error, but your fix didn't seem to fix it. Any ideas?

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

2 participants