npm install --g gpp - 挂起 [英] npm install --g gulp - hangs

查看:180
本文介绍了npm install --g gpp - 挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  Windows PowerShell 
版权所有(C)2014 Microsoft Corporation。版权所有。

PS C:\ Windows \ system32> npm install --g gpp
npm ERR! Windows_NT 6.3.9600
npm ERR! argvC:\\Program Files\\\\\\\\\\\\\'节点\\\\\\\\\\\\'节日npm\\\\
ode_modules\\\\
pm\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\节点v5.4.1
npm ERR! npm v3.10.5
npm ERR!代码ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR!系统调用connect

npm ERR!网络连接ETIMEDOUT 151.101.12.162:443
npm ERR!网络这很可能不是npm本身的问题
npm ERR!网络,并与网络连接有关。
npm ERR!网络在大多数情况下,您位于代理的后面或网络设置不正确。
npm ERR!网络
npm ERR!网络如果你在代理的后面,请确保
npm ERR!网络'代理'配置设置正确。请参阅:'npm help config'

npm ERR!请包含以下任何支持请求的文件:
npm ERR! C:\ Windows \ system32 \\\
pm-debug.log
PS C:\ Windows \ system32>

我在npm install时遇到了麻烦。我无法安装gulp和其他库。安装挂起,然后我得到了错误。 :

> npm config set proxy false
npm cache clean


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>

I have a trouble with npm install. I can't install gulp and other libraries. Installation hangs and then i got the error. :(

解决方案

I found solution :-)

npm config set proxy false
npm cache clean

这篇关于npm install --g gpp - 挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆