NPM:反应原生的同伴依赖

时间:2017-08-19 18:34:12

标签: node.js react-native npm

我试图在我的MacBook上创建我的第一个反应原生应用程序:

$ npm install -g react-native-cli

在我的package.json中有

{
  "dependencies": {
    "react": "~15.4.0-rc.4",
    "react-native": "0.41.0",
    "react-native-image-carousel": "^0.3.2",
    "react-native-image-picker": "^0.25.7",
    "react-native-local-mongodb": "^1.8.2"
  }
}

使用npm install我收到了消息

npm WARN react-native-image-carousel@0.3.2 requires a peer of react-native@^0.40.0 but none was installed.
npm WARN react-swipeable-views-native@0.10.5 requires a peer of react-native@^0.39.0 but none was installed.

我该怎么做?

0 个答案:

没有答案