我有一个部署到Heroku的nodejs应用程序,直到大约一个月前才构建和部署没有问题。我很难理解失败。相关的终端输出如下:
> phantomjs@1.9.7-4 install /tmp/build_c96b0390-650f-43d5-9934-cc72c43953b2/node_modules/webshot/node_modules/phantomjs
> node install.js
Downloading http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-1.9.7-linux-x86_64.tar.bz2
Receiving...
Error requesting archive.
Status: 403
Request options: {
"protocol": "http:",
"slashes": true,
"auth": null,
"host": "cdn.bitbucket.org",
"port": null,
"hostname": "cdn.bitbucket.org",
"hash": null,
"search": null,
"query": null,
"pathname": "/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2",
"path": "/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2",
"href": "http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2"
}
Response headers: {
"content-type": "text/html",
"content-length": "14134",
"connection": "keep-alive",
"date": "Sat, 24 May 2014 00:28:20 GMT",
"last-modified": "Sat, 24 May 2014 00:08:24 GMT",
"etag": "\"999f4f548bfffe25245dc29e49c57e9c\"",
"accept-ranges": "bytes",
"server": "AmazonS3",
"age": "12201",
"x-cache": "Hit from cloudfront",
"via": "1.1 31eb1468562b1815063cfc3ab29ac220.cloudfront.net (CloudFront)",
"x-amz-cf-id": "KiTtF6DOFzWbQbyoNTTdkEoQNFmTn0WGPjLMg13DCzyevjciZ3us4A=="
}
Make sure your network and proxy settings are correct.
npm ERR! phantomjs@1.9.7-4 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@1.9.7-4 install script.
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! System Linux 3.8.11-ec2
npm ERR! command "/tmp/build_c96b0390-650f-43d5-9934-cc72c43953b2/vendor/node/bin/node" "/tmp/build_c96b0390-650f-43d5-9934-cc72c43953b2/vendor/node/bin/npm" "rebuild"
npm ERR! cwd /tmp/build_c96b0390-650f-43d5-9934-cc72c43953b2
npm ERR! node -v v0.10.29
npm ERR!
npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/build_c96b0390-650f-43d5-9934-cc72c43953b2/npm-debug.log
npm ERR! not ok code 0
0 info it worked if it ends with ok
其中一个phantomJS资源正在响应403.有没有人知道为什么会出现这种情况或如何解决这个问题?
我可以根据要求提供任何其他信息。
感谢。