Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Error during installation The package react does not satisfy its siblings' peerDependencies requirements #24

Closed
codemanki opened this issue Apr 6, 2015 · 2 comments

Comments

@codemanki
Copy link

Hello. I'm getting an error during installation using npm install --save express-react-views react.

npm WARN unmet dependency /Users/oleks/projects/mine/testreact/node_modules/express-react-views/node_modules/node-jsx requires react-tools@'^0.12.1' but will load
npm WARN unmet dependency /Users/oleks/projects/mine/testreact/node_modules/express-react-views/node_modules/react-tools,
npm WARN unmet dependency which is version 0.12.2
npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer express-react-views@0.7.1 wants react@^0.12.0

npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--save" "express-react-views" "react"
npm ERR! cwd /Users/oleks/projects/mine/testreact
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code EPEERINVALID

My first thought was that something is wrong with my project's dependencies, but i've created a new project from scratch:

> mkdir testreact
> cd testreact/
> npm init
> npm install --save express-react-views react

And still get the same error :( Probably something wrong with the dependencies, but i'm not sure which ones are conflicting. Thanks for looking into this.

@zpao
Copy link
Member

zpao commented Apr 6, 2015

peerDependencies must be installed by the host package. So in your case, the warning in the first case is ok (both explicitly depend on react-tools). The error isn't ok obviously. npm install --save react@0.12 should fix that.

@codemanki
Copy link
Author

Specifying the full version of react helped me: npm install --save react@0.12.0. Thanks!

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

2 participants