我试图安装Gulp几个月,字面意思。自八月或更早。每次冒充时间,它会卡住一分钟,然后抛出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版本的存储库... Log说它不能安装glob-stream包,我也不能手动安装它 - 同样的错误...
答案 0 :(得分:1)
基本上,您不是全局安装gulp
个包,而是gulp-cli
。您的日志说,您尝试安装gulp
软件包,您希望将其安装为dev依赖项(-D
参数)。
试试这个:
npm install gulp-cli -g
cd your/project/dir
npm install gulp -D