I am trying to include bootstrap 3.7 in my angular 2 project by using Angular CLI command -
npm install bootstrap --save
I have requirement to use bootstrap 3.7 version. But, it is installing the latest version of bootstrap i..e bootstrap 4.
How to install specific version of bootstrap using Angular CLI?
3+ Ways to Include Bootstrap 5 In Your Angular 13 ProjectImport the Bootstrap CSS file in the global styles. css file of your Angular project with an @import keyword. Add the Bootstrap CSS and JavaScript files in the styles and scripts arrays of the angular. json file of your project.
Adding bootstrap using the angular.Open the file and perform the following commands, node_modules/bootstrap/dist/css/bootstrap. css in the projects->architect->build->styles array, node_modules/bootstrap/dist/js/bootstrap. js in the projects->architect->build->scripts array, node_modules/bootstrap/dist/js/bootstrap.
From the official bootstrap documentation :
You can also install Bootstrap using npm:
npm install bootstrap@3 --save
This is related to NPM, not angular. There are 2 ways:
"bootstrap": "4.0.0"
to 3.3.7
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With