首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装带转角的问题

安装带转角的问题
EN

Stack Overflow用户
提问于 2022-03-18 12:26:58
回答 1查看 2.2K关注 0票数 0

我一直在搜索一些问题来解决安装ng引导程序的问题,但是我可以解决它,我有w10,VSCode 1.65.2,角形版本:

代码语言:javascript
运行
复制
Angular CLI: 13.2.3
Node: 16.14.2
Package Manager: npm 8.5.3
OS: win32 x64

Angular: undefined
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1302.3
@angular-devkit/core         13.2.3
@angular-devkit/schematics   13.2.3
@angular/cli                 13.2.3
@schematics/angular          13.2.3

我已经将cmd终端打开到vsc中,并按分期付款的方式输入ng add @ng-bootstrap/ng-bootstrap,但我可以这样做。这是我的错误

代码语言:javascript
运行
复制
Skipping installation: Package already installed
UPDATE package.json (1327 bytes)
⠸ Installing packages (npm)...npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: angular-firebase@0.0.0
npm ERR! Found: @angular/compiler@13.2.6
npm ERR! node_modules/@angular/compiler
npm ERR!   @angular/compiler@"~13.2.0" from the root project
npm ERR!   peer @angular/compiler@"13.2.6" from @angular/compiler-cli@13.2.6
npm ERR!   node_modules/@angular/compiler-cli
npm ERR!     dev @angular/compiler-cli@"~13.2.0" from the root project      
npm ERR!     peer @angular/compiler-cli@"^13.0.0" from @angular-devkit/build-angular@13.2.6
npm ERR!     node_modules/@angular-devkit/build-angular
npm ERR!       dev @angular-devkit/build-angular@"~13.2.3" from the root project
npm ERR!     1 more (@ngtools/webpack)
npm ERR!   1 more (@angular/platform-browser-dynamic)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @angular/localize@"~13.2.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/compiler@13.2.7
npm ERR! node_modules/@angular/compiler
npm ERR!   peer @angular/compiler@"13.2.7" from @angular/localize@13.2.7
npm ERR!   node_modules/@angular/localize
npm ERR!     @angular/localize@"~13.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\pcb\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\pcb\AppData\Local\npm-cache\_logs\2022-03-18T12_03_16_626Z-debug-0.log
✖ Package install failed, see above.
The Schematic workflow failed. See above.

最后这是我的小弟弟

代码语言:javascript
运行
复制
{  "name": "angular-firebase",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "~13.2.0",
    "@angular/common": "~13.2.0",
    "@angular/compiler": "~13.2.0",
    "@angular/core": "~13.2.0",
    "@angular/fire": "^7.2.1",
    "@angular/forms": "~13.2.0",
    "@angular/localize": "~13.2.0",
    "@angular/platform-browser": "~13.2.0",
    "@angular/platform-browser-dynamic": "~13.2.0",
    "@angular/router": "~13.2.0",
    "@ng-bootstrap/ng-bootstrap": "^12.0.0",
    "@popperjs/core": "^2.10.2",
    "@sweetalert2/ngx-sweetalert2": "^11.0.0",
    "bootstrap": "^5.1.3",
    "rxjs": "~7.5.0",
    "sweetalert2": "^11.4.4",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~13.2.3",
    "@angular/cli": "^13.3.0",
    "@angular/compiler-cli": "~13.2.0",
    "@types/jasmine": "~3.10.0",
    "@types/node": "^12.11.1",
    "jasmine-core": "~4.0.0",
    "karma": "~6.3.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.1.0",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "~1.7.0",
    "typescript": "~4.5.2"
  }
}

你能帮我一下吗?因为我很笨(一步一步地),你能帮我离开这些设备吗?

亲切的问候

PaCaBo

EN

回答 1

Stack Overflow用户

发布于 2022-03-18 12:38:45

删除node_modules文件夹和package-lock.json文件。跟着这些步骤,

npm install --save @ng-bootstrap/ng-bootstrap

然后

npm install

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71527012

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档