Bug #790
Problem Downloading PhantomJS from NPM
Description
I recently tried to install phantomjs globally from npm. However, when I tried to install it I received the following error:
Error requesting archive.
Status: 403
Request options: {
"uri": "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip",
"encoding": null,
"followRedirect": true,
"headers": {
"User-Agent": "npm/2.14.7 node/v4.4.1 freebsd x64"
},
"strictSSL": true
}
Response headers: {
"x-amz-request-id": "FD153E6D630EBAB4",
"x-amz-id-2": "DgxDfZZRUFUJXHCyzrjXgzsAwALrEfpZdt2qFgrDYPpb/QnXn/HwwYvS2qEZgX0BrGJxn0xoVa4=",
"content-type": "application/xml",
"transfer-encoding": "chunked",
"date": "Mon, 04 Apr 2016 03:45:06 GMT",
"server": "AmazonS3",
"connection": "close"
}
Make sure your network and proxy settings are correct.If you continue to have issues, please report this full log at https://github.com/Medium/phantomjs
npm ERR! FreeBSD 10.2-RELEASE
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "phantomjs"
npm ERR! node v4.4.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLEnpm ERR! phantomjs@2.1.3 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@2.1.3 install script 'node install.js'.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
- After looking around online, I found a workaround by using the npm CDN to download packages:
PHANTOMJS_CDNURL=http://cnpmjs.org/downloads npm install -g phantomjs
Resources¶
Updated by Daniel Curtis over 8 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100