我试图在我的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.
我该怎么做?