【发布时间】:2014-10-15 10:51:56
【问题描述】:
我正在尝试在弹性 beantalk 上全局安装一个 npm 包。这就是我根据 documentation 编写的配置文件的样子。
container_commands:
install_phantom:
command: "npm install phantomjs -g"
当我部署到 Elastic Beanstalk 时出现此错误
命令在实例上失败。返回码:1 输出:发生错误 构建期间:命令 install_phantom 失败。
【问题讨论】:
-
我发现的一件事是
npm不包含在路径中,而是位于/opt/elasticbeanstalk/node-install/node-v0.10.26-linux-x64/bin/npm -
Loourr - 你有运气吗?上面的命令我试过了,包括指定npm的确切路径,但是命令总是失败。
标签: node.js amazon-web-services npm phantomjs amazon-elastic-beanstalk