2017-04-14 67 views
1

我目前正在嘗試將我的React Native項目從0.38升級到0.43。 react-native-git-upgrade沒有工作,因此我試圖手動升級。當我嘗試升級我的反應@ 16.0.0-alpha.6,我得到以下錯誤:React Native 0.43升級:[email protected]不滿足其兄弟姐妹

$ npm install --save [email protected] 
npm ERR! Darwin 16.4.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "[email protected]" 
npm ERR! node v4.3.0 
npm ERR! npm v2.14.12 
npm ERR! code EPEERINVALID 

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements! 
npm ERR! peerinvalid Peer [email protected] wants [email protected]~15.4.0-rc.4 
npm ERR! peerinvalid Peer [email protected] wants [email protected]^15.4.1 

沒有人對我有任何指針或建議嗎? 非常感謝!

回答

0

我有這個問題tonite。刪除了node_modules和yarn.lock並運行了新鮮紗線安裝

+0

我最終也這樣做了。 – Jonas

0

我有這個相同的問題,可能是你可以更新節點版本來解決它,而你的節點版本(4.3.0)太舊了,你應該更新它到最新。 enter image description here