所以,我需要将我对“react”的 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"
}
}
}
}
}
我能做些什么来解决这个依赖问题?