Angular `npm install save --bootstrap` 没有安装 bootstrap 模块
Angular `npm install save --bootstrap` doesn't install bootstrap module
我需要在新的 Angular 项目中安装 bootstrap 模块。
npm install save --bootstrap
Output is below and the bootstrap module is not installed in the node_modules.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ save@2.4.0
updated 1 package and audited 1467 packages in 5.145s
55 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
The previous successful installation indicated at least 10+ packages should be added. But above output indicated just 1 package updated?
有人可以帮忙解决问题吗?
我是这样安装的:
npm install bootstrap jquery popper.js --save-dev
然后编辑 angular.json
"./node_modules/bootstrap/dist/css/bootstrap.min.css"
和
"./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
我需要在新的 Angular 项目中安装 bootstrap 模块。
npm install save --bootstrap
Output is below and the bootstrap module is not installed in the node_modules.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ save@2.4.0
updated 1 package and audited 1467 packages in 5.145s
55 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
The previous successful installation indicated at least 10+ packages should be added. But above output indicated just 1 package updated?
有人可以帮忙解决问题吗?
我是这样安装的:
npm install bootstrap jquery popper.js --save-dev
然后编辑 angular.json
"./node_modules/bootstrap/dist/css/bootstrap.min.css"
和
"./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"