Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Proxy 尝试在windows中使用npm安装程序包时出现Get-ETimedOut错误_Proxy_Npm - Fatal编程技术网

Proxy 尝试在windows中使用npm安装程序包时出现Get-ETimedOut错误

Proxy 尝试在windows中使用npm安装程序包时出现Get-ETimedOut错误,proxy,npm,Proxy,Npm,当我试图使用这个命令“npm install-g yo”时,我遇到了这个“ETimedOut”错误。实际上我正在使用网络代理来访问internet 我收到一条警告消息,“如果你在代理后面,请确保‘代理’配置设置正确”。 有人能帮我解决这个问题吗。您可以使用以下命令设置: npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 非常感谢。

当我试图使用这个命令“npm install-g yo”时,我遇到了这个“ETimedOut”错误。实际上我正在使用网络代理来访问internet

我收到一条警告消息,“如果你在代理后面,请确保‘代理’配置设置正确”。 有人能帮我解决这个问题吗。

您可以使用以下命令设置:

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

非常感谢。我能够解决我的问题