【问题标题】:Npm error. I not able to install any package. Its throwing a errorNpm 错误。我无法安装任何软件包。它抛出一个错误
【发布时间】:2017-02-28 06:41:47
【问题描述】:

错误:

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.

【问题讨论】:

  • 请发布您的 package.json
  • “axios”:“^0.14.0”,“react”:“15.3.2”,“react-native”:“0.34.1”,“react-native-button”:“ ^1.7.1”、“react-native-drawer”:“^2.3.0”、“react-native-easy-grid”:“^0.1.6”、“react-native-hamburger”:“0.0.2 ", "react-native-redux-router": "^1.0.7", "react-native-scrollable-tab-view": "^0.6.0", "react-native-simple-store": "^ 1.1.0”,“react-native-swiper”:“^1.5.1”,“react-native-vector-icons”:“^2.1.0”,“react-redux”:“^4.4.5”, “redux”:“^3.6.0”,“redux-logger”:“^2.7.0”

标签: node.js reactjs npm react-native


【解决方案1】:

对于您尝试使用的 react-native-maps 版本,您的 react-native 版本必须 >= .35。目前,对于不满足 react-native-maps 的 react-native,您将其设置为 0.34.1。您可以升级 react-native 或尝试与您正在使用的 react-native 版本一起使用的较早版本的 react-native-maps。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-12
    • 1970-01-01
    • 2018-02-12
    • 2017-02-07
    • 1970-01-01
    • 2020-06-09
    • 2022-12-05
    • 2016-11-23
    相关资源
    最近更新 更多