install react-native-image-picker 出错
来源:
poooocket
2016-12-06
abudeMac-mini:imoocApp2 Adrain$ npm install react-native-image-picker --save
npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/Adrain/.nvm/versions/node/v4.2.3/bin/node" "/Users/Adrain/.nvm/versions/node/v4.2.3/bin/npm" "install" "react-native-image-picker" "--save"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package react@15.3.2 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.34.1 wants react@~15.3.1
npm ERR! peerinvalid Peer react-addons-update@15.4.1 wants react@^15.4.1
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Adrain/Projects/imoocApp2/npm-debug.log
abudeMac-mini:imoocApp2 Adrain$ npm install react-native-image-picker@0.20.0 --save
npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/Adrain/.nvm/versions/node/v4.2.3/bin/node" "/Users/Adrain/.nvm/versions/node/v4.2.3/bin/npm" "install" "react-native-image-picker@0.20.0" "--save"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package react@15.3.2 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.34.1 wants react@~15.3.1
npm ERR! peerinvalid Peer react-addons-update@15.4.1 wants react@^15.4.1
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Adrain/Projects/imoocApp2/npm-debug.log
1回答
-
版本冲突了,把模块都删掉,按照这个版本安装试试:
"react": "~15.3.1", "react-native": "0.36.1", "react-native-audio": "^2.2.0", "react-native-button": "^1.7.1", "react-native-cli": "^1.0.0", "react-native-image-picker": "^0.22.12", "react-native-progress": "^3.1.0", "react-native-sk-countdown": "^1.0.1", "react-native-swiper": "^1.5.2", "react-native-vector-icons": "^2.1.0", "react-native-video": "^0.9.0",
如果还不行,就可以选择按照补录课程里讲的,把版本都升级一下重新构建项目
112016-12-07
相似问题