I was following a tutorial, thats why i had to use those commands. insted i used this.
npm install bootstrap --save
@import "~bootstrap/dist/css/bootstrap.css";
You simpley do
npm install bootstrap
and then map the respected soure location into your angular.json file
"scripts": [
"./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
],
"styles": [
"styles.css","./node_modules/bootstrap/dist/css/bootstrap.min.css"
]
And restart your app
or
You can try with ngx also
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.