10

How can I upgrade my existing angular application to Bootstrap version 4.0.0.

I know it would be easy but I am looking for proper process to upgrade without facing much issues as I could see many stack overflows of Bootstrap 4.0.0 Stable bugs.

Thanks,

Aakash Kumar
  • 893
  • 4
  • 15
  • 38
  • `npm install bootstrap@latest` works with Angular 7, just tried it. I got Bootstrap [4.3.1](https://www.npmjs.com/package/bootstrap). – Ajit Panigrahi May 29 '19 at 06:03

3 Answers3

13

My take is:

  1. delete the node_modules folder (just in case)
  2. delete the bootstrap entries from the package.jsons
  3. npm i bootstrap to install bootstrap4
  4. install ng-bootstrap via the offical guide: npm install --save @ng-bootstrap/ng-bootstrap
ForestG
  • 17,538
  • 14
  • 52
  • 86
1

if you are using yarn

yarn upgrade bootstrap@latest
Juri
  • 1,531
  • 2
  • 20
  • 43
1
npm update --save @ng-bootstrap/ng-bootstrap

This will update your current bootstrap package to lastest version. And then run

npm audit fix 
Aniket
  • 391
  • 5
  • 13