所以,我需要将对“反应”的npm依赖关系升级到15.4.0-rc.4
我已经尝试将package.json中的值更新为“^ 15.4.0-rc.4”并删除依赖项然后运行npm install react@15.4.0-rc.4 --save
但问题是我总是这样:
+-- UNMET PEER DEPENDENCY react@15.4.0-rc.4
`-- react-number-input@15.0.0-rc2
`-- react@15.3.2
我已经在我的npm-shrinkwrap.json中重写了依赖项,如下所示:
{
"name": "admin-console",
"version": "4.1.0",
"dependencies": {
"react-number-input": {
"version": "15.0.0-rc2",
"from": "react-number-input@>=15.0.0-rc2 <16.0.0",
"resolved": "https://registry.npmjs.org/react-number-input/-/react-number-input-15.0.0-rc2.tgz",
"dependencies": {
"react": {
"version": "15.4.0-rc.4",
"from": "react@>=15.0.1 <16.0.0",
"resolved": "https://registry.npmjs.org/react/-/react-15.4.0-rc.4.tgz"
}
}
}
}
}
如何解决此依赖性问题?