Upgrading Angular application to Bootstrap 4.0.0

11,025

Solution 1

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

Solution 2

if you are using yarn

yarn upgrade bootstrap@latest

Solution 3

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

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

npm audit fix 
Share:
11,025

Related videos on Youtube

Aakash Kumar
Author by

Aakash Kumar

Updated on September 16, 2022

Comments

  • Aakash Kumar
    Aakash Kumar over 1 year

    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,