react-global
react-global copied to clipboard
To avoid peerDependencies problems with npm 1 or 2 and react ^x.0.0
Hello,
I cloned my project in a machine with npm 2.15.1 , all was installed as expected on my node_modules folder but at the end I had this error :
Binary is fine; exiting.
npm ERR! Windows_NT 6.1.7601
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.4
npm ERR! npm v2.15.1
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' pee
rDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.
0.0
npm ERR! peerinvalid Peer [email protected] wants react@^15.0.
2
npm ERR! peerinvalid Peer [email protected] wants react@^15.0.2
npm ERR! peerinvalid Peer [email protected] wants react@^15.0.2
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.
0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0
npm ERR! Please include the following file with any support request:
npm ERR! C:\dev\bcp-bot-web\npm-debug.log
A method to solve it is to add the current react version format to the peerDependencies section of the module.
"peerDependencies": {
"react": "0.x || ^x.0.0"
}
i added
"peerDependencies": {
"react": "0.x || ^x.0.0"
}
but still have warning message with npm 4.1.2
[email protected] requires a peer of [email protected] but none was installed.