我正在尝试运行以下命令将ngx-bootstrap安装到我的项目中
ng add ngx-bootstrap
我收到了这个错误信息。见下面的完整CLI输出:i Using package manager: npm
√ Found compatible package version: ngx-bootstrap@6.2.0.
√ Package information loaded.
√ Package successfully installed.
An unhandled exception occurred: Cannot find module '@schematics/angular/utility/config'
Require stack:
- C:\Users\user\source\repos\DatingApp\client\node_modules\ngx-bootstrap\schematics\ng-add\index.js
- C:\Users\user\source\repos\DatingApp\client\node_modules\@angular-devkit\schematics\tools\export-ref.js
- C:\Users\user\source\repos\DatingApp\client\node_modules\@angular-devkit\schematics\tools\index.js
- C:\Users\user\source\repos\DatingApp\client\node_modules\@angular\cli\utilities\json-schema.js
- C:\Users\user\source\repos\DatingApp\client\node_modules\@angular\cli\models\command-runner.js
- C:\Users\user\source\repos\DatingApp\client\node_modules\@angular\cli\lib\cli\index.js
- C:\Users\user\AppData\Roaming\npm\node_modules\@angular\cli\lib\init.js
- C:\Users\user\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
See "C:\Users\user\AppData\Local\Temp\ng-qPbtRR\angular-errors.log" for further details.
我尝试卸载@angular-devkit和@angular/cli,然后再次尝试,但没有成功。
跳过安装:包已经安装 添加了“bootstrap” ✅️ 添加了“ngx-bootstrap” � 正在安装包... 更新 package.json(1353 字节) 更新 angular.json(4728 字节) ✔ 包已成功安装。 - Rich Ward