2017-01-09 35 views
0

当我安装角2 CLI我获得与NPM一个错误:NPM错误安装角2 CLI:隧道插座不能建立,的StatusCode = 405

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-48_binding.node 
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-48_binding.node": 

tunneling socket could not be established, statusCode=405 

Hint: If github.com is not accessible in your location 
     try setting a proxy via HTTP_PROXY, e.g. 
export HTTP_PROXY=http://example.com:1234 

or configure npm proxy via 
npm config set proxy http://example.com:8080 

节点-v:6.9.4, npm -v:3.10.10

我不使用代理服务器。我做了一些事情,如:

npm config rm proxy 
npm config rm https-proxy 
npm config set proxy false 
npm cache clean 
npm config set registry "https://registry.npmjs.org/" 

,但没有工作,我还搜查了计算器几天,我没有得到解决,谢谢你..

回答

0

您好我面临着同样的问题我做了以下配置更改。 在命令提示符下执行以下命令。

NPM配置设置代理空

NPM配置一套HTTPS代理空

希望它可以帮助你。