首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么我在试图安装gulp时总是出错?

为什么我在试图安装gulp时总是出错?
EN

Stack Overflow用户
提问于 2022-02-02 21:55:24
回答 1查看 1.1K关注 0票数 2

由于某些原因,我无法安装gulp,它总是会引发以下错误:

代码语言:javascript
复制
    /wp-content/themes/the-advocates-theme$ npm i gulp-install

added 4 packages, and audited 755 packages in 2s

39 packages are looking for funding
  run `npm fund` for details

12 vulnerabilities (3 moderate, 6 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

这就是我运行npm audit时得到的

代码语言:javascript
复制
glob-parent  <5.1.2
Severity: high
Regular expression denial of service - https://github.com/advisories/GHSA-ww39-953v-wcq6
fix available via `npm audit fix --force`
Will install gulp@3.9.1, which is a breaking change
node_modules/glob-stream/node_modules/glob-parent
node_modules/glob-watcher/node_modules/glob-parent
  chokidar  1.0.0-rc1 - 2.1.8
  Depends on vulnerable versions of glob-parent
  node_modules/glob-watcher/node_modules/chokidar
    glob-watcher  >=3.0.0
    Depends on vulnerable versions of chokidar
    node_modules/glob-watcher
  glob-stream  5.3.0 - 6.1.0
  Depends on vulnerable versions of glob-parent
  node_modules/glob-stream
    vinyl-fs  >=2.4.2
    Depends on vulnerable versions of glob-stream
    node_modules/vinyl-fs
      gulp  >=4.0.0
      Depends on vulnerable versions of vinyl-fs
      node_modules/gulp

lodash.template  <4.5.0
Severity: critical
Prototype Pollution in lodash - https://github.com/advisories/GHSA-jf85-cpcp-j695
No fix available
node_modules/lodash.template
  gulp-util  >=1.1.0
  Depends on vulnerable versions of lodash.template
  node_modules/gulp-util
    gulp-install  *
    Depends on vulnerable versions of gulp-util
    node_modules/gulp-install

postcss  <8.2.13
Severity: moderate
Regular Expression Denial of Service in postcss - https://github.com/advisories/GHSA-566m-qj78-rww5
fix available via `npm audit fix --force`
Will install gulp-sourcemaps@2.6.5, which is a breaking change
node_modules/@gulp-sourcemaps/identity-map/node_modules/postcss
  @gulp-sourcemaps/identity-map  >=2.0.0
  Depends on vulnerable versions of postcss
  node_modules/@gulp-sourcemaps/identity-map
    gulp-sourcemaps  >=3.0.0
    Depends on vulnerable versions of @gulp-sourcemaps/identity-map
    node_modules/gulp-sourcemaps

12 vulnerabilities (3 moderate, 6 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.
EN

回答 1

Stack Overflow用户

发布于 2022-02-02 22:31:47

这些不是错误,而是国家预防机制发出的警告。狼吞虎咽的团队意识到了这些警告,但已经决定不需要考虑这些警告。相反,他们坚持认为断了应该被修复。您可能会要求他们改变主意,但请注意,您的请求可能会被标记为垃圾邮件:123.

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70963372

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档