bcrypt无法使用Node 8.9.3在AWS ELB上构建

时间:2018-03-21 16:52:56

标签: node.js elastic-beanstalk bcrypt

以下是Cloudwatch在部署时引发的错误 -

[2018-03-21T08:55:25.254Z] INFO [2599] - [Application deployment v1.1.7@15/StartupStage0/AppDeployPreHook/50npm.sh] : Activity execution failed, because: + /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install

> bcrypt@1.0.3 install /tmp/deployment/application/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build



Running npm install: /opt/elasticbeanstalk/node-install/node-v6.11.5-linux-x64/bin/npm
Setting npm config jobs to 1
npm config jobs set to 1
Running npm with --production flag
Failed to run npm install. Snapshot logs for more details.
Traceback (most recent call last):
File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 695, in <module>
main()
File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 677, in main
node_version_manager.run_npm_install(options.app_path)
File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 136, in run_npm_install
self.npm_install(bin_path, self.config_manager.get_container_config('app_staging_dir'))
File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 180, in npm_install
raise e
subprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v6.11.5-linux-x64/bin/npm', '--production', 'install']' returned non-zero exit status 1 (ElasticBeanstalk::ExternalInvocationError)

我还没有找到比这更有用的东西;它证实它失败了,但很少继续说明原因。我已尝试过Node 6.11.5(如本例所示)和Node 8.9.3(最新的ELB支持)。

有谁知道为什么会突然发生这种情况?我尝试过全新的环境,尝试运行npm install --production时遇到了同样的问题。对于它的价值,同样的命令在我的Macbook上运行没有问题。

0 个答案:

没有答案