2017-02-13 7 views
0

私の環境にコードをデプロイする際に問題が発生しました。エラスティックbeanstalk "50npm.sh failed"へのデプロイメントに関する問題

Creating application version archive "app-aa68e-170213_103330". 
Uploading PAS-API/app-aa68e-170213_103330.zip to S3. This may take a while. 
Upload Complete. 
INFO: Environment update is starting.        
INFO: Deploying new version to instance(s).       
ERROR: Failed to run npm install. Snapshot logs for more details. 
ERROR: [Instance: i-0ee97a5c7bcab8d51] 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-v4.4.6-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. 
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 
ERROR: Unsuccessful command execution on instance id(s) 'i-0ee97a5c7bcab8d51'. Aborting the operation. 

npm installがサーバー上で実行されている場合、展開が失敗しているようです。

答えて

0

私はDEPSのいくつかは、それがインストールされ、保存されたとき、それはこのように見えたことを意味し、代わりにバージョン番号のtarボールとして追加されたように見えたpackage.json確認:

"basic-auth": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.0.4.tgz" 

よりもむしろ

"basic-auth": "^1.1.0", 

これは、ebインスタンスのnpm installで失敗していました。今のところ動作しているようです。

関連する問題