当我构建ngx管理员入门工具包时出错



当我下载ngx管理员入门套件并使用npm i进行构建时,它成功构建,然后我删除node_modules,再次删除npm i,然后我在下面得到错误

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: tslint-language-service@0.9.9
npm ERR! Found: tslint@6.1.3
npm ERR! node_modules/tslint
npm ERR!   dev tslint@"~6.1.0" from the root project
npm ERR!   peer tslint@"^5.0.0 || ^6.0.0" from codelyzer@6.0.0
npm ERR!   node_modules/codelyzer
npm ERR!     dev codelyzer@"^6.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer tslint@">= 4 < 6" from tslint-language-service@0.9.9
npm ERR! node_modules/tslint-language-service
npm ERR!   dev tslint-language-service@"^0.9.9" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: tslint@5.20.1
npm ERR! node_modules/tslint
npm ERR!   peer tslint@">= 4 < 6" from tslint-language-service@0.9.9
npm ERR!   node_modules/tslint-language-service
npm ERR!     dev tslint-language-service@"^0.9.9" from the root project
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:UserscihadAppDataLocalnpm-cacheeresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:UserscihadAppDataLocalnpm-cache_logs2022-07-31T09_59_42_148Z-debug-0.log
PS D:Projectsngx-admin-car>
PS D:Projectsngx-admin-car>
PS D:Projectsngx-admin-car> npm i
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: tslint-language-service@0.9.9
npm ERR! Found: tslint@6.1.3
npm ERR! node_modules/tslint
npm ERR!   dev tslint@"~6.1.0" from the root project
npm ERR!   peer tslint@"^5.0.0 || ^6.0.0" from codelyzer@6.0.0
npm ERR!   node_modules/codelyzer
npm ERR!     dev codelyzer@"^6.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer tslint@">= 4 < 6" from tslint-language-service@0.9.9
npm ERR! node_modules/tslint-language-service
npm ERR!   dev tslint-language-service@"^0.9.9" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: tslint@5.20.1
npm ERR! node_modules/tslint
npm ERR!   peer tslint@">= 4 < 6" from tslint-language-service@0.9.9
npm ERR!   node_modules/tslint-language-service
npm ERR!     dev tslint-language-service@"^0.9.9" 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:UserscihadAppDataLocalnpm-cacheeresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:UserscihadAppDataLocalnpm-cache_logs2022-07-31T10_00_15_506Z-debug-0.log  

我的ng v结果

Angular CLI: 14.0.4
Node: 16.16.0
Package Manager: npm 8.13.2
OS: win32 x64
Angular: <error>
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1400.4 (cli-only)
@angular-devkit/build-angular   <error>
@angular-devkit/core            14.0.4 (cli-only)
@angular-devkit/schematics      14.0.4 (cli-only)
@angular/cli                    14.0.4 (cli-only)
@schematics/angular             14.0.4 (cli-only)
rxjs                            6.6.7 (cli-only)
typescript                      4.7.4 (cli-only)

尝试运行npm install --force

最新更新