【问题标题】:Found 1 low severity vulnerability Error, while creating new react project发现 1 个低严重性漏洞错误,同时创建新的反应项目
【发布时间】:2020-05-20 02:52:01
【问题描述】:

当我使用 > npx create-react-app my-app 创建反应项目时,它向我显示一个错误:

发现 1 个低严重性漏洞运行 npm audit fix 来修复它们,或 npm audit 了解详细信息。

我尝试使用 npm audit fix 解决此问题,但它不起作用。

                   === npm audit security report ===


                             Manual Review
         Some vulnerabilities require your attention to resolve

      Visit https://go.npm.me/audit-guide for additional guidance




Low             Prototype Pollution

  Package         yargs-parser

  Patched in      >=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2

  Dependency of   react-scripts

  Path            react-scripts > webpack-dev-server > yargs > yargs-parser

  More info       https://npmjs.com/advisories/1500

found 1 low severity vulnerability in 1618 scanned packages
  1 vulnerability requires manual review. See the full report for details.

【问题讨论】:

    标签: javascript reactjs


    【解决方案1】:

    这些低安全性漏洞不应该阻止你,这在 npm 生态系统中有点“正常”。在 Create React App 的上下文中,这不是一个真正的“漏洞”,因为它会生成静态包,但如果您恢复依赖项,它应该会消失。

    npm --depth 999 update set-value && npm --depth 999 update mixin-deep
    

    【讨论】:

      猜你喜欢
      • 2020-11-22
      • 1970-01-01
      • 1970-01-01
      • 2018-12-04
      • 2019-07-28
      • 1970-01-01
      • 2022-08-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多