Npm 审计问题
Npm audit issues
谁能解释一下这意味着什么以及我如何解决它。
这是我在尝试 运行 全局
“npm audit fix” 命令时遇到的错误
gomer@Gomers-MBP ~ % npm audit fix
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: web-project@0.0.0
npm ERR! Found: @angular/compiler-cli@8.2.14
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"~8.2.11" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler-cli@"^12.0.0" from @angular-devkit/build-angular@12.0.1
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^12.0.1" 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 /Users/gomer/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/gomer/.npm/_logs/2021-05-22T16_02_12_140Z-debug.log
gomer@Gomers-MBP ~ %
感谢
你为什么运行全球如此?
运行 它位于适当的包目录中,因此它可能会修复包依赖项中的漏洞。你用错了。
我建议阅读有关如何使用它的信息:
https://docs.npmjs.com/cli/v7/commands/npm-audit
谁能解释一下这意味着什么以及我如何解决它。 这是我在尝试 运行 全局
“npm audit fix” 命令时遇到的错误gomer@Gomers-MBP ~ % npm audit fix
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: web-project@0.0.0
npm ERR! Found: @angular/compiler-cli@8.2.14
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"~8.2.11" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler-cli@"^12.0.0" from @angular-devkit/build-angular@12.0.1
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^12.0.1" 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 /Users/gomer/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/gomer/.npm/_logs/2021-05-22T16_02_12_140Z-debug.log
gomer@Gomers-MBP ~ %
感谢
你为什么运行全球如此?
运行 它位于适当的包目录中,因此它可能会修复包依赖项中的漏洞。你用错了。
我建议阅读有关如何使用它的信息: https://docs.npmjs.com/cli/v7/commands/npm-audit