npm i bootstrap 命令不适用于安装 boostrap

npm i bootstrap command not working for install boostrap

提问人:Ishani Samaraweera 提问时间:10/8/2023 最后编辑:Ishani Samaraweera 更新时间:10/8/2023 访问量:43

问:

npm i bootstrap 命令不适用于安装 bootstrap。没有添加到packages.json文件和node_modules中。

package.json依赖关系:

"dependencies": {
    "@angular/animations": "^16.2.0",
    "@angular/common": "^16.2.0",
    "@angular/compiler": "^16.2.0",
    "@angular/core": "^16.2.0",
    "@angular/forms": "^16.2.0",
    "@angular/platform-browser": "^16.2.0",
    "@angular/platform-browser-dynamic": "^16.2.0",
    "@angular/router": "^16.2.0",
    "rxjs": "~7.8.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.13.0"
  },

`

javascript 节点 .js 角度 angularjs

评论


答:

1赞 Tripurari Singh 10/8/2023 #1

错误是什么?

您可以尝试:-

 1. Delete the node_modules folder
 2. npm cache clean --force
 3. npm i
 4. npm i bootstrap