Tezro Solutions
Tezro Solutions

Reputation: 431

Amazon AWS Elastic Beanstalk NodeJS app

I have created a NodeJS app in Amazon AWS Elastic Beanstalk. Everytime I deploy the app I get following error (in logs):

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":[]}]}

Any idea what must be causing it?

Upvotes: 2

Views: 634

Answers (1)

Clarkie
Clarkie

Reputation: 7550

When deploying a NodeJS application to elastic beanstalk npm install is run automatically for you. You haven't posted the contents of your 01-install-dependencies but guessing from the name and the error message that script runs npm install.

I did some investigation a while back into which npm scripts are automatically run by elastic beanstalk - npm scripts on elastic beanstalk

Upvotes: 2

Related Questions