I upgraded from React 15.4 to React 16. I also went through all the js libraries in my package.json and updated them to the latest. Still i'm getting these warnings and am not sure how to resolve them.
npm WARN react-render-html#0.5.2 requires a peer of react#^15.1.0 but none was installed.
npm WARN react-addons-test-utils#15.6.2 requires a peer of react-dom#^15.4.2 but none was installed.
npm WARN recharts#1.0.0-alpha.6 requires a peer of react#^0.14.0 || ^15.0.0 but none was installed.
npm WARN #daptiv/ppm-npmp-react-theme#2.0.5 requires a peer of react#^15.6.1 but none was installed.
npm WARN react-resize-detector#0.6.0 requires a peer of react#^0.14.7 || ^15.0.0 but none was installed.
npm WARN react-smooth#0.3.0 requires a peer of react#^0.14.0 || ^15.0.0 but none was installed.
npm WARN react-smooth#0.3.0 requires a peer of react-dom#^0.14.0 || ^15.0.0 but none was installed.
npm WARN ppm-mspa-projectdashboard#0.0.23 No repository field.
Any ideas?
There is not much you can do about those warnings. If you look at the package.json files of those dependencies that you get the warning about, like react-render-html, you'll see that they have React 15 as peer dependency.
The authors of these packages you are using will have to update their dependency to the latest React to fix those warnings.
You can, of course, fork the projects and create pull requests to make it easier for them.
Related
Hello I am getting these error after installing react native-naviation component
I am using EXPO for instead of NVD. More important is to resolve bold warning(last two warning)
npm WARN eslint-plugin-react-native#3.2.1 requires a peer of eslint#^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN native-base#2.7.2 requires a peer of react#>=16.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN native-base#2.7.2 requires a peer of react-native#>=0.56.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-maps#0.21.0 requires a peer of react-native#^0.51 || ^0.52 || ^0.53 || ^0.54 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated#1.0.0-alpha.3 requires a peer of react#16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated#1.0.0-alpha.3 requires a peer of react-native#^0.44.1 but none is installed. You must install peer dependencies yourself.
**npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):**
**npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})**
None of these errors are anything to worry about. Infact, they are not errors but a warnings.
eslint code quality checking software. It simply checks your code to see if it is adhering to the best standards. You could turn off that warning if you wished.
fsevents is an optional dependency. This error comes up (usually) if you are using npm on mac systems. It should have no effect on your build though. If you're particularly upset about those last two errors, run npm i -f to force a fetch of remote resources (which should get rid of that dependency issue).
I am trying to compile an old project. npm install -D webpack earlier complained of webpack-cli install issue. Now if I try with the latest one npm i -D webpack#4.6.0, it is giving following error.
└── UNMET PEER DEPENDENCY webpack#4.6.0 invalid
npm WARN babel-loader#6.4.1 requires a peer of webpack#1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.
npm WARN webpack-dev-middleware#1.12.2 requires a peer of webpack#^1.0.0 || ^2.0.0 || ^3.0.0 but none was installed.
npm WARN webpack-dev-server#1.16.5 requires a peer of webpack#>=1.3.0 <3 but none was installed.
npm WARN react-tutorials#0.0.0 No repository field.
npm ERR! code 1
I'm having issue installing react and react-bootstrap. I used them in the past and everything was working fine. But now, I seem to have an issue installing or updating them.
After the code line: npm install --save react-bootstrap in my terminal, I get these errors:
npm WARN react-bootstrap#0.32.1 requires a peer of react#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-bootstrap#0.32.1 requires a peer of react-dom#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-prop-types#0.4.0 requires a peer of react#>=0.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#2.2.1 requires a peer of react#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#2.2.1 requires a peer of react-dom#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-overlays#0.8.3 requires a peer of react#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-overlays#0.8.3 requires a peer of react-dom#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN prop-types-extra#1.0.1 requires a peer of react#>=0.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN uncontrollable#4.1.0 requires a peer of react#>=0.11.0 but none is installed. You must install peer dependencies yourself.
Even my past react projects aren't working anymore and I can't find in the docs anything about these errors.
Thank you for any help.
I suspect there's an typo in your command line
npm install --save react-booTstrap
I am trying to run npm install command and getting the below error; The same package.JSON works fine in local, but when I try to run the command through jenkins job getting the error.
npm WARN #angular/animations#4.1.2 requires a peer of
#angular/core#4.1.2 but none was installed. npm WARN
#angular/core#2.3.1 requires a peer of rxjs#5.0.0-rc.4 but none was
installed. npm WARN #angular/http#2.3.1 requires a peer of
rxjs#5.0.0-rc.4 but none was installed. npm WARN
#angular/material#2.0.0-beta.5 requires a peer of #angular/core#^4.0.0
but none was installed. npm WARN #angular/material#2.0.0-beta.5
requires a peer of #angular/common#^4.0.0 but none was installed. npm
WARN #angular/router#3.3.1 requires a peer of rxjs#5.0.0-rc.4 but none
was installed. npm WARN #swimlane/ngx-datatable#7.1.1 requires a peer
of #angular/common#^4.0.0 but none was installed.
Please help me to fix this issue.
This error message says that you want to use #angular/animations#4.1.2 without #angular/core#4.1.2. This usually happens when you are missing or using different versions of modules.
Solution is, try to update your package.json dependencies and install missing once.
I'm running a react-native project,and it's package.json dependencies some third-part libraries,but maybe these libraries haven't update for a long time,they require different version of react.
When I npm install, I got warning below:
npm WARN react-native#0.43.3 requires a peer of react#16.0.0-alpha.6 but none was installed.
npm WARN native-base-shoutem-theme#0.1.0 requires a peer of react#>=15.1.0 but none was installed.
npm WARN #shoutem/animation#0.8.10 requires a peer of react#^15.0.0 but none was installed.
npm WARN react-static-container#1.0.1 requires a peer of react#^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
npm WARN react-test-renderer#15.4.2 requires a peer of react#^15.4.2 but none was installed.
I'm not sure npm could install multiple version in a single project.So how could I fix this problem?