If you want to install the Bootstarp without jQuery library (which is recommended), there is a package named ng-bootstrap
.
You can install it by running this script:
npm install ng-bootstrap@latest
Also, it is recommended to install packages using Angular CLI.
You may ask why?
Because it can update your project with configuration changes, for example if it needs to update your angular.json
, to place css
or script
file addresses.
For more info regarding this, visit Difference between ng add vs npm install QA!
To install using Angular CLI, run this script:
ng add @ng-bootstrap/ng-bootstrap@latest
You can replace @latest
version with a target version like @12.0.1
, to install an older version, you can find the version history in their github link here