Npm错误。我无法安装任何软件包。它抛出一个错误

时间:2016-10-18 20:34:47

标签: node.js reactjs npm react-native

错误:

error Windows_NT 6.1.7601
error argv "C:\\Program Files\\nodejs\\node.exe" 
"C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "react-native-randombytes" "--save"
error node v4.4.7
error npm  v2.15.8
error code EPEERINVALID
error peerinvalid The package react-native@0.34.1 does not satisfy its siblings' peerDependencies requirements!
error peerinvalid Peer react-native-scrollable-tab-view@0.6.0 wants react-native@>=0.20.0
error peerinvalid Peer react-native-maps@0.11.0 wants react-native@>=0.35.

1 个答案:

答案 0 :(得分:0)

对于您尝试使用的react-native-maps版本,您的react-native版本需要> = .35。目前,对于react-native,它设置为0.34.1,不满足react-native-maps。您可以升级react-native或尝试使用您正在使用的react-native版本的react-native-maps的早期版本。