【发布时间】:2019-06-10 07:24:33
【问题描述】:
我在安装软件包后收到此消息:
added 1 package from 8 contributors and audited 49729 packages in 23.754s
found 25 vulnerabilities (1 low, 24 high)
run `npm audit fix` to fix them, or `npm audit` for details
所以我运行了npm audit fix,它修复了一些漏洞。
...
+ @angular-devkit/build-ng-packagr@0.800.2
+ @angular-devkit/build-angular@0.800.2
added 125 packages from 72 contributors, updated 8 packages and moved 16 packages in 65.005s
fixed 12 of 25 vulnerabilities in 49729 scanned packages
3 package updates for 13 vulns involved breaking changes
(use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
它建议使用 npm audit fix --force,我使用了它,现在当我尝试运行 Angular 应用程序时出现此错误:
Schema validation failed with the following errors:
Data path ".builders['app-shell']" should have required property 'class'.
Error: Schema validation failed with the following errors:
发生了什么,我应该使用 npm audit fix 还是忽略警告。如何让我的应用再次运行?
它在我运行强制修复后显示此消息,但已经运行命令为时已晚:
npm WARN using --force I sure hope you know what you are doing.
安装的包:
【问题讨论】:
标签: angular npm angular-cli