0

我正在尝试部署我的 React SSR 应用程序,我执行了以下步骤

eb init
eb create
eb deploy

它抛出一个错误

eb deploy
Creating application version archive "app-1bc2-190303_150947".
Uploading haal/app-1bc2-190303_150947.zip to S3. This may take a while.
Upload Complete.
2019-03-03 09:39:53    INFO    Environment update is starting.      
2019-03-03 09:39:56    INFO    Deploying new version to instance(s).
2019-03-03 09:40:30    ERROR   Failed to run npm install. Snapshot logs for more details.
2019-03-03 09:40:32    ERROR   [Instance: i-02acaf076e72912d6] Command failed on instance. Return code: 1 Output: (TRUNCATED)...opt/elasticbeanstalk/containerfiles/ebnode.py", line 180, in npm_install
    raise e
subprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v10.15.1-linux-x64/bin/npm', '--production', 'install']' returned non-zero exit status 1. 
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
2019-03-03 09:40:32    INFO    Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2019-03-03 09:40:32    ERROR   Unsuccessful command execution on instance id(s) 'i-02acaf076e72912d6'. Aborting the operation.
2019-03-03 09:40:33    ERROR   Failed to deploy application.

我什至尝试在以下环境中上传构建 zip,仍然是同样的错误。我究竟做错了什么?

4

0 回答 0