我試圖升級到我的項目上使用[email protected]^4.4.0軟件包的新發布的[email protected]。 然而,當我嘗試運行升級文件(https://facebook.github.io/react/blog/2016/03/07/react-v15-rc1.html)React 15與React-redux不兼容
npm install --save [email protected] [email protected]
中建議它有錯誤出現,因爲版本不兼容:
npm ERR! peerinvalid Peer [email protected] wants [email protected]^0.14.7
npm ERR! peerinvalid Peer [email protected] wants [email protected]^0.14.0
任何建議嗎?
這已被提出作爲一張票。 https://github.com/reactjs/react-redux/issues/319 –
順便說一下,你可以使用'npm @ 3.x',在這裏,對等關係的缺失只是一個警告而不是錯誤。 –