Ernest Rutherford
Ernest Rutherford

Reputation: 11

Install lastest (10th) version of ngx-bootstrap for Angular 15

Official website says that 10th ngx-boostrap is compatible with 15th Angular:

https://valor-software.com/ngx-bootstrap/#/documentation#getting-started

Angular (14.x.x - 15.x.x) ngx-bootstrap (10.0.0)

But when I attempt to install it (npm install ngx-bootstrap@latest) I take an error: enter image description here

eresolve-report.txt:

enter image description here

Am I installing it in a wrong way? Or how there could be unresolved dependency in packages that should be compatible?

Upvotes: 3

Views: 6471

Answers (3)

Zack
Zack

Reputation: 9

The following command works for angular 15:

npm install ngx-bootstrap@latest --legacy-peer-deps

Upvotes: 0

Bhadresh Patel
Bhadresh Patel

Reputation: 2050

try with this: npm install ngx-bootstrap@latest --legacy-peer-deps.

It worked for me hope it will help you.

Upvotes: 0

Silver Abel
Silver Abel

Reputation: 46

At this moment, ngx-bootstrap@latest is 9.0.0, 10.0.0 is @next.

Additionally version 10 still has peerDependencies for Angular 14 (probably not intentionally), so it can't be installed without --force or --legacy-peer-deps. https://www.npmjs.com/package/ngx-bootstrap/v/10.0.0?activeTab=explore

Upvotes: 3

Related Questions