npm modules wont get installed - angularjs

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.

Related

Installing material-ui showing warning: $ npm install #material-ui/core npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0

I am installing material-ui: npm install #material-ui/core (which is the latest version) for React.
I got the latest npm version (npm i -g npm, which is now + npm#6.1.0).
And I also have tried: npm install --save material-ui.
But it always keeps showing me this:
$ npm install #material-ui/core
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
#material-ui/core#1.2.1
updated 1 package and audited 14597 packages in 8.235s
found 0 vulnerabilities.
I don't know if this is a material-ui latest version problem? or it is the latest npm problem? So, how do I proceed to install the material-ui for React?
You need to install ajv#^6.0.0
npm install -S ajv#^6.0.0
Edit: to add to this, as described in this post, it seems that npm removed the automatic installation of peer dependencies on npm 3, but if you'd like that to be taken care of automatically, you can use npm-install-peers

React-bootstrap not installing

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

npm install errors in jenkins job

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.

[react-native]npm install warn require multiple version react

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?

How do I fix peer dependency errors?

I have an Angular project I began using a random starter project. Someone on our team attempted to clone the repo and when they did an npm install the application would not build and was giving the following errors:
npm WARN #angular/router#3.2.0 requires a peer of #angular/upgrade#2.2.0 but none was installed.
npm WARN codelyzer#1.0.0-beta.3 requires a peer of #angular/compiler#~2.1.1 but none was installed.
npm WARN codelyzer#1.0.0-beta.3 requires a peer of #angular/core#~2.1.1 but none was installed.
npm WARN app#0.0.0 No repository field.
It says angular router requires angular 2.2.0. So I manually install angular 2.2.0 and then I get the following error:
npm WARN codelyzer#1.0.0-beta.3 requires a peer of #angular/compiler#~2.1.1 but none was installed.
npm WARN codelyzer#1.0.0-beta.3 requires a peer of #angular/core#~2.1.1 but none was installed.
Now codelyzer reacquires the version of angular that I just upgrading from. I can easily go to the starter project and update my files but that is not going to help me to learn how to fix this issue.
How does one go about correcting what seems to be a circular dependency problem when you fix one issue only to cause another?

Resources