1

从字面上看,我正在尝试安装 Gulp 几个月。自八月或更早以来。每次 effing 时间,它都会卡住一分钟,然后抛出 ECONNRESET 错误。

npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. 
Use 'npm ls graceful-fs' to find it in the tree.
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.npmjs.org/glob-stream/-/glob-stream-3.1.18.tgz failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Chilli\AppData\Roaming\npm-cache\_logs\2017-11-22T17_48_46_679Z-debug.log

我没有代理,我已经在谷歌上搜索了几个月,但没有任何效果。我多次更新了nodejs和npm,清除了缓存或代理设置,更改了http版本的存储库......日志说它无法安装glob-stream包,我也无法手动安装它 - 同样的错误......

NPM 日志:https ://pastebin.com/Ci0AYYzY

4

1 回答 1

1

基本上,您不会gulp在全局范围内安装软件包,而是gulp-cli. 你的日志说,你试图安装gulp包,你想安装它作为开发依赖(-D参数)。

尝试这个:

npm install gulp-cli -g
cd your/project/dir
npm install gulp -D
于 2017-11-22T18:13:11.487 回答