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.
Related
I am trying to run my react bootstrap app with the command npm start, however this error appears
#babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining#7.14.5 requires a peer of #babel/core#^7.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap#5.0.0-alpha1 requires a peer of popper.js#^1.16.0 but none is installed. You must install peer dependencies yourself.
This is my package.json: https://hastebin.com/saforuvocu.json
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 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.
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?
I was trying to install dependencies which resulted in this warning:
npm WARN angular2-in-memory-web-api#0.0.12 requires a peer of #angular/core#2.0.0-rc.2 but none was installed.
npm WARN angular2-in-memory-web-api#0.0.12 requires a peer of #angular/http#2.0.0-rc.2 but none was installed.
I then tried to manually install #angular/core#2.0.0-rc.2 so i used:
npm install -g #angular/core#2.0.0-rc.2
Which also resulted in
npm WARN #angular/core#2.0.0-rc.2 requires a peer of rxjs#5.0.0-beta.6 but none was installed.
npm WARN #angular/core#2.0.0-rc.2 requires a peer of zone.js#^0.6.6 but none was installed.
I then used
npm install -g rxjs#5.0.0-beta.6
npm install -g zone.js#^0.6.6
Which threw no warning. I then proceed to again install #angular/core#2.0.0-rc.2, but it threw same warning as before, like those two modules weren't installed at all. Has anyone met similliar problem?
What is causing this? I am trying to wrap my mind about it but can't find a solution, is there a way how to fix it?
Thanks for help.