Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unmet Peer Dependency popper.js

Tags:

jquery

npm

I'm having trouble using some ng-bootstrap dropdown component because of dependency on jquery 3x which in turn cannot find popper.js

See this in my console

Uncaught Error: Bootstrap dropdown require Popper.js

How do I get around this?

Install of jquery using npm shows the dependency on popper.js that's not in npm registry

└── UNMET PEER DEPENDENCY popper.js@^1.11.0

Here are my dependencies in package.json

"dependencies": {
    "@angular/animations": "^4.2.4",
    "@angular/common": "^4.2.4",
    "@angular/compiler": "^4.2.4",
    "@angular/core": "^4.2.4",
    "@angular/forms": "^4.2.4",
    "@angular/http": "^4.2.4",
    "@angular/platform-browser": "^4.2.4",
    "@angular/platform-browser-dynamic": "^4.2.4",
    "@angular/router": "^4.2.4",
    "@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.1",
    "bootstrap": "^4.0.0-beta",
    "core-js": "^2.4.1",
    "font-awesome": "^4.7.0",
    "jquery": "^3.2.0",
    "rxjs": "^5.4.2",
    "zone.js": "^0.8.14"
  },
like image 694
Jimmy Fencer Avatar asked Aug 13 '17 01:08

Jimmy Fencer


1 Answers

Popper.js can be now installed from npm:

npm install popper.js --save
like image 87
Amio.io Avatar answered Nov 15 '22 22:11

Amio.io