2017-10-17 134 views
2

我處於需要運行本地代理的環境中,並且無法安裝節點sass。當我嘗試以下方法:無法安裝節點sass

npm install -g node-sass 

我得到一個錯誤:

Cannot download " https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-48_binding.node ": tunneling socket could not be established, cause=read ECONNRESET

我已經安裝cntlm並正確配置它。要驗證我使用porxy服務器訪問互聯網,它工作正常。

以下環境變量設置

http_proxy -> http://localhost:3128 
https_proxy -> http://localhost:3128 

還增加了以下我.npmrc

https-proxy=http://localhost:3128 
http-proxy=http://localhost:3128 
proxy=http://localhost:3128 

而且通過添加斜線結束,但結果是一樣的嘗試。

任何線索和幫助將不勝感激,因爲我不知道如何解決這個問題。

其他細節:

node -v 
v6.11.4 

npm -v 
5.5.1 

回答