【发布时间】: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 cache;
npm cache clean --force,但是同样的问题仍然存在。
【问题讨论】:
-
我的猜测可能与尝试在
npm或其他内容中使用\\DOM-PDC\HomeWin$` ... not sure whether this is because of where your "user area" under Windows is, theprefix` 设置有关。您能否在这些条件下(a) 全局安装任何其他软件包(是 => gulp 有问题);或 (b) 当您的“全局”区域是本地驱动器时安装它(是 => 安装到网络驱动器时出现问题)。 -
@TripeHound 谢谢。我会尝试在这里通知结果。