Node.js NPM:react native的对等依赖关系

Node.js NPM:react native的对等依赖关系,node.js,react-native,npm,Node.js,React Native,Npm,我正在尝试在MacBook上创建我的第一个react本机应用程序: $ npm install -g react-native-cli 在my 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

我正在尝试在MacBook上创建我的第一个react本机应用程序:

$ npm install -g react-native-cli
在my 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安装
我收到了消息

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.
我该怎么办