Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm Requires a peer but none was installed

I am getting the following warnings but i didn´t figure out how to update them. I also have tried to install the dependencies needed but it does not work.

npm WARN [email protected] requires a peer of ajv@>=5.0.0 but none was installed.
npm WARN [email protected] requires a peer of ionic-angular@^3.4.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/core@^2.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/http@^2.0.0 but none was installed.

Could you please help me?

Best regards.

like image 680
Pablo García Miranda Avatar asked Jul 13 '17 15:07

Pablo García Miranda


1 Answers

Mine was saying:
[email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

Upon searching for Ajv, I realized that ajv 6.0.0 is a release candidate so I added "ajv": "^6.0.1", to the dependencies im my package.json file instead.
I ran npm install. Then I reran my installation script and it eliminated my errors.

Hopefully, it will work for everyone else too.

like image 123
Tim Biden Avatar answered Oct 12 '22 21:10

Tim Biden