Updating the npm project version to the candidate for release - INDEPENDENT INDEPENDENCE

So, I need to update the npm dependency on the "reaction" to 15.4.0-rc.4

I tried both updating the value in my .json package to "^ 15.4.0-rc.4" and removing the dependency, then running npm install react@15.4.0-rc.4 --save

The problem is that I always get the following:

+-- UNMET PEER DEPENDENCY react@15.4.0-rc.4
`-- react-number-input@15.0.0-rc2
  `-- react@15.3.2

I redefined the dependency in my npm-shrinkwrap.json as follows:

{
  "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"
        }
      }
    }
  }
}

What can I do to fix this dependency problem?

+4
source share

Source: https://habr.com/ru/post/1660195/


All Articles