首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >npm install --g gulp hangs

npm install --g gulp hangs
EN

Stack Overflow用户
提问于 2016-07-27 17:51:10
回答 1查看 1.3K关注 0票数 1
代码语言:javascript
复制
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> npm install --g gulp
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Karol\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\np
m-cli.js" "install" "--g" "gulp"
npm ERR! node v5.4.1
npm ERR! npm  v3.10.5
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect

npm ERR! network connect ETIMEDOUT 151.101.12.162:443
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is 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! Please include the following file with any support request:
npm ERR!     C:\Windows\system32\npm-debug.log
PS C:\Windows\system32>

我在安装npm时遇到了问题。我不能安装gulp和其他库。安装挂起,然后我得到了错误。:(

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-07-27 21:46:29

我找到了解决方案:-)

代码语言:javascript
复制
npm config set proxy false
npm cache clean
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38609531

复制
相关文章

相似问题

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