我試圖安裝幾個與React相關的npm模塊,但我得到了peerDependencies錯誤。該版本似乎挺合我意:NPM React peerDependencies錯誤
npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]^0.14.5
npm ERR! peerinvalid Peer [email protected] wants [email protected]>=0.14.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]^0.14.6
npm ERR! peerinvalid Peer [email protected] wants [email protected]>=0.14.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]^0.13.3
不[email protected]滿足所有:
- [email protected]^0.14.5
- 反應@> = 0.14.0
- [email protected]^0.14.6
- [email protected]^0.13.3
我的package.json是:
{
"name": "Test",
"version": "1.0.0",
"description": "",
"dependencies": {
"babel-core": "^6.4.0",
"babel-loader": "^6.2.1",
"babel-plugin-transform-react-jsx": "^6.4.0",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"history": "^1.17.0",
"jquery": "^2.2.0",
"lodash": "^4.0.0",
"react": "^0.14.6",
"react-autosuggest": "^3.3.1",
"react-bootstrap": "^0.28.2",
"react-dom": "^0.14.6",
"react-router": "^2.0.0-rc2",
"react-router-bootstrap": "^0.20.1",
"react-switch-button": "^1.1.1",
"webpack": "^1.12.11"
}
}
我錯過了什麼嗎?
'13.x'與'14.x'不兼容(根據'semver')。見規則[這裏](https://docs.npmjs.com/misc/semver) – aarosil