
我也试过使用以下命令,
ng add @ng-bootstrap/ng-bootstrap -- force它没有工作,所以我删除了package-lock.json文件和node_modules文件。我使用以下命令重新安装它。
npm install --legacy-peer-deps不过,我也有同样的问题。有人有主意吗?
发布于 2022-07-11 17:04:02
我正在学习一个教程,这就是为什么我必须使用这些命令。我用过这个。
npm安装引导程序--保存
@import "~bootstrap/dist/css/bootstrap.css";
发布于 2022-07-11 17:19:18
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 alsohttps://stackoverflow.com/questions/72941801
复制相似问题