【发布时间】:2025-12-04 20:05:01
【问题描述】:
我在需要运行本地代理的环境中,但无法安装 node-sass。当我尝试以下操作时:
npm install -g node-sass
我收到一个错误:
无法下载“https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-48_binding.node”:无法建立隧道套接字,原因=读取 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
【问题讨论】:
标签: node-sass