Aakash Kumar
Aakash Kumar

Reputation: 893

Upgrading Angular application to Bootstrap 4.0.0

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,

Upvotes: 10

Views: 17330

Answers (3)

Aniket
Aniket

Reputation: 401

npm update --save @ng-bootstrap/ng-bootstrap

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

npm audit fix 

Upvotes: 1

Juri
Juri

Reputation: 1769

if you are using yarn

yarn upgrade bootstrap@latest

Upvotes: 1

ForestG
ForestG

Reputation: 18123

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

Upvotes: 13

Related Questions