【问题标题】:How to install gulp globally如何全局安装 gulp
【发布时间】:2019-07-31 09:02:45
【问题描述】:

我正在尝试在工作计算机上全局安装 gulp 并发现一些错误

> PS C:\OpenServer\domains\the_witcher_3_wild_hunt> npm install gulp -g
> npm ERR! path \\DOM-PDC\HomeWin7$\ npm ERR! code ELOOP npm ERR! errno
> -62 npm ERR! syscall stat npm ERR! ELOOP: too many symbolic links encountered, stat '\\DOM-PDC\HomeWin7$\'
> 
> npm ERR! A complete log of this run can be found in: npm ERR!    
> C:\Devel\nodejs\npm-cache\_logs\2019-07-31T08_56_13_632Z-debug.log

编辑:

  • 我已阅读this related issue,可以确认没有安装以前版本的gulp
  • 我还通过运行清除了npm cachenpm cache clean --force,但是同样的问题仍然存在。

【问题讨论】:

  • 我的猜测可能与尝试在npm 或其他内容中使用\\DOM-PDC\HomeWin$` ... not sure whether this is because of where your "user area" under Windows is, the prefix` 设置有关。您能否在这些条件下(a) 全局安装任何其他软件包(是 => gulp 有问题);或 (b) 当您的“全局”区域是本地驱动器时安装它(是 => 安装到网络驱动器时出现问题)。
  • @TripeHound 谢谢。我会尝试在这里通知结果。

标签: npm gulp


【解决方案1】:

这个问题是关于“前缀”的,因为它建议@TripeHound。 如果您有类似的问题,您可以找到答案here

【讨论】:

  • 很高兴我能把你推向正确的方向。然而,虽然回答你自己的问题完全没问题,但所谓的“仅链接”答案是不受欢迎的(因为链接将来可能会失效)。如果您可以将该页面中的基本详细信息添加到您的答案中,那将是最好的(正确确认/引用来源)。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-01-05
  • 2020-12-01
  • 1970-01-01
  • 2016-06-09
  • 2016-12-19
  • 1970-01-01
  • 2018-08-20
相关资源
最近更新 更多