请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

install react-native-image-picker 出错

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回答

Scott 2016-12-07 08:37:21

版本冲突了,把模块都删掉,按照这个版本安装试试:


"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",


如果还不行,就可以选择按照补录课程里讲的,把版本都升级一下重新构建项目

1 回复 有任何疑惑可以回复我~
  • 提问者 poooocket #1
    非常感谢!
    回复 有任何疑惑可以回复我~ 2016-12-07 14:23:49
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信