小编Ahs*_*Ali的帖子

手动修复 NPM 中的漏洞

我克隆了一个存储库并做了一个,npm install但最后发生了一些错误。现在每当我跑步时,npm audit我都会收到消息

found 18 vulnerabilities (5 low, 12 moderate, 1 high) in 15548 scanned packages
  9 vulnerabilities require semver-major dependency updates.
  9 vulnerabilities require manual review. See the full report for details.
Run Code Online (Sandbox Code Playgroud)

无论我做什么,它们都保持不变,我也尝试了npm update, npm audit fix, npmaudit fix --force和其他一些解决方案,但没有任何效果。以下是当前安装的软件包列表:

D:\NewState\opticare>npm list --depth=0
opticare@0.0.0 D:\NewState\opticare
+-- UNMET PEER DEPENDENCY @angular/animations@5.2.11
+-- @angular/cli@1.7.4
+-- UNMET PEER DEPENDENCY @angular/common@5.2.11
+-- UNMET PEER DEPENDENCY @angular/compiler@5.2.11
+-- @angular/compiler-cli@5.2.11
+-- UNMET PEER DEPENDENCY @angular/core@5.2.11
+-- …
Run Code Online (Sandbox Code Playgroud)

javascript node.js npm angular

3
推荐指数
1
解决办法
6160
查看次数

标签 统计

angular ×1

javascript ×1

node.js ×1

npm ×1