我在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 :(得分:2)
将NodeJS应用程序部署到弹性beanstalk npm install
时会自动运行。您尚未发布01-install-dependencies
的内容,但会从脚本运行的名称和错误消息中猜测npm install
。
我做了一些调查,回过头来看哪些npm脚本是由弹性beanstalk自动运行的 - npm scripts on elastic beanstalk