试图通过an npm wrapper安装PhantomJS,同时在公司代理后面。我已经设置http_proxy和https_proxy环境变量,使故宫本身将能够与注册表进行通信:phantomjs npm安装在代理后面失败
export http_proxy=my-company-proxy.com:80
export https_proxy=my-company-proxy.com:80
但是,当它来到节点install.js phantomjs的阶段,我得到了一个协议不受支持错误:
http.js:1711
throw new Error('Protocol:' + options.protocol + ' not supported.');
^
Error: Protocol:my-company-proxy.com: not supported.
这个工作后,我也删除HTTP_PROXY和HTTPS_PROXY(未设置HTTP_PROXY ...) – osundblad 2013-03-06 11:57:36