2017-01-09 55 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代理空

希望它可以幫助你。