我目前正在尝试将我的React Native项目从0.38升级到0.43。 react-native-git-upgrade
无效,因此我尝试手动升级。当我尝试将我的反应升级到@ 16.0.0-alpha.6时,我收到以下错误:
$ npm install --save react@16.0.0-alpha.6
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "react@16.0.0-alpha.6"
npm ERR! node v4.3.0
npm ERR! npm v2.14.12
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package react@16.0.0-alpha.6 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.38.1 wants react@~15.4.0-rc.4
npm ERR! peerinvalid Peer react-test-renderer@15.4.1 wants react@^15.4.1
有没有人对我有任何指示或建议? 非常感谢!