Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed

I tried to install bootstrap in my Angular Project by

npm install --g bootstrap

but i am getting following warning

npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of popper.js@^1.14.6 but none is installed. You must install peer dependencies yourself.

I am using following version of ng and npm

Angular CLI: 7.1.4
Node: 10.15.0
OS: win32 x64
Angular: 7.1.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.11.4
@angular-devkit/build-angular     0.11.4
@angular-devkit/build-optimizer   0.11.4
@angular-devkit/build-webpack     0.11.4
@angular-devkit/core              7.1.4
@angular-devkit/schematics        7.1.4
@ngtools/webpack                  7.1.4
@schematics/angular               7.1.4
@schematics/update                0.11.4
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.23.1
like image 433
Arul Suju Avatar asked Jan 08 '19 18:01

Arul Suju


3 Answers

Just do as it says:

npm i [email protected] --save

the option --save is to save this dependency to your project.

like image 76
Samir Sadek Avatar answered Nov 06 '22 12:11

Samir Sadek


I had the same problem and this is the solution:

npm install bootstrap jquery popper.js --save

The system automatically resolves the references for you.

like image 20
Alejandro Garcia Avatar answered Nov 06 '22 12:11

Alejandro Garcia


This worked for me -

npm i -g [email protected]
like image 3
JustAnotherDataEnthusiast Avatar answered Nov 06 '22 13:11

JustAnotherDataEnthusiast