Respond to a build failure warning?

After starting react-native init reactApp, a warning appears npm WARN react-native@0.39.2 requires a peer of react@~15.4.0-rc.4 but none was installed. The design is successful, although here is my package.json after the build.

{
  "name": "reactApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "15.4.1",
    "react-native": "0.39.2"
  },
  "devDependencies": {
    "babel-jest": "18.0.0",
    "babel-preset-react-native": "1.9.1",
    "jest": "18.0.0",
    "react-test-renderer": "15.4.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

This is problem? Should I change the reaction version and then run npm install? I am completely new to reacting / responding, so any advice would be appreciated as the best ways to prevent mistakes in the future.

Thank!

+4
source share
3 answers

I have been working with React Native in about 3 weeks. While working react-native init Proj, I had a similar warning:

npm WARN response-native@0.39.2 @~15.4.0-rc.4, .

npm WARN minimatch@2.0.10: 3.0.2 , RegExp DoS

npm WARN , mark@0.3.6 -g

. - .

:

npm install --save react@15.4, , , .

+1

React Native React, . , React .

0

I also had this problem. Updating responsive / gender-responsive versions to the latest fixed issue.

package.json

"react": "^16.0.0-beta.5",
"react-native": "0.47.0",
"react-test-renderer": "^16.0.0-beta.5"
0
source

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


All Articles