Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install安装出错phantomjs #192

Open
vaefbw opened this issue Mar 3, 2014 · 5 comments
Open

npm install安装出错phantomjs #192

vaefbw opened this issue Mar 3, 2014 · 5 comments

Comments

@vaefbw
Copy link

vaefbw commented Mar 3, 2014

phantomjs需要翻墙下载,我手动下载后放到npm install对应的phantomjs那个目录下(把整个zip文件放过去),再试试,祝你成功

@songsharp
Copy link

如果是window系统,翻墙下载 http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-windows.zip
放到安装失败时提示的临时文件

@2betop
Copy link
Contributor

2betop commented Mar 6, 2014

bitbucket cdn被墙了,找个http 代理设置一下npm吧

npm config set proxy http://www.xxx.com:8080

@2betop
Copy link
Contributor

2betop commented Mar 6, 2014

如果用了goagent, 可以这么设置

npm config set proxy http://127.0.0.1:8087

@qqqzhch
Copy link

qqqzhch commented Mar 9, 2014

不错

@wh1100717
Copy link

@2betop 我觉得npm install --proxy http://127.0.0.1:8087 或者http_proxy=http://127.0.0.1:8087 npm install更好用一些,主要是不更改npm配置,想用的时候就用,不用就不写好了^_^

不过尝试用代理有时候还是下不下来或者速度很慢...我觉得最好的方法还是使用任何方法(比如去同事那里拷一份,或者别的网站上找一个相同版本的文件神马的)搞到photomJS文件,然后保存在安装时候访问的临时文件目录下,npm install时,如果该文件已经存在则会显示Download already available at /aa/bb/cc/phantomjs.zip,然后直接安装。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants