【发布时间】:2017-11-27 12:57:18
【问题描述】:
有一个小型 React/Redux 应用程序我想对照 nsp 检查进行检查。
例如,nsp 抱怨我在应用中使用的 debug 2.6.8 包包含漏洞。所以我需要升级 debug 的版本:
Regular Expression Denial of Service
│ Name │ debug
│ CVSS │ 3.7 (Low)
│ Installed │ 2.6.8
│ Vulnerable │ <= 2.6.8 || >= 3.0.0 <= 3.0.1
│ Patched │ >= 2.6.9 < 3.0.0 || >= 3.1.0
│ Path │ sms-web@0.0.1 > webpack-dev-server@2.5.0 >
compression@1.7.0 >
│ │ debug@2.6.8
│ More Info │ https://nodesecurity.io/advisories/534
我试过npm update --depth=7,但它没有更新调试包。
那么如何更新深层放置的包,例如调试?
【问题讨论】:
-
这里有收缩包装的解决方案:stackoverflow.com/questions/15806152/…
标签: reactjs npm npm-install