2

我在Amazon AWS Elastic Beanstalk中創建了一個NodeJS應用程序。每次我部署的應用程序,我得到以下錯誤(在日誌中):Amazon AWS Elastic Beanstalk NodeJS應用程序

2016-09-06T15:56:48.332Z] INFO [17369] : Command processor returning results: 
{"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"/bin/sh: npm: command not found. \ncontainer_command 01-install-dependencies in .ebextensions/install.config failed. For more detail, check /var/log/eb-activity.log using console or EB CLI","returncode":127,"events":[]}]} 

任何想法是什麼必須造成它?

+0

可以粘貼/var/log/eb-activity.log – error2007s

+0

什麼是你的'.ebextensions /安裝。配置文件? –

+0

這裏是/var/log/eb-activity.log:http://www.heypasteit.com/clip/2WIN –

回答

2

當您將一個NodeJS應用程序部署到彈性beanstalk時,npm install會自動爲您運行。您尚未發佈01-install-dependencies的內容,但是從腳本運行的名稱和錯誤消息中猜出npm install

我做了一些調查,而回成新公共管理腳本自動彈性魔豆運行 - npm scripts on elastic beanstalk

相關問題