在ubuntu中安装node-sass报错:Error: tunneling socket could not be established
在报错信息中看到使用了/etc/profile中设置的http_proxy和https_proxy,提示是无效的proxy,于是将其注释并重新source。
但是通过env还是能获取到,只能通过unset http_proxy和unset https_proxy方式手工删除环境变量。
最后使用cnpm install node-sass -g
安装成功
登陆发表评论