I want to deploy my PHP app in a Amazon Elastic Beanstalk with eb deploy
command. But my app use gulp to concat and minify scss and js.
So I tried these commands to in the file .ebextensios/03npm.config
commands:
01-install-node:
command: "yum install nodejs npm --enablerepo=epel -y"
container_commands:
01-install-dependencies:
command: "npm install"
02-build:
command: "npm run build"
But in the end I receive this error
[Instance: i-c7800103] Command failed on instance. Return code: 1 Output: (TRUNCATED)...ttps://registry.npmjs.org/acorn npm http 304 https://registry.npmjs.org/amdefine npm http 304 https://registry.npmjs.org/wrappy npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /var/app/ondeck/npm-debug.log npm ERR! not ok code 0. container_command 01-install-dependencies in .ebextensions/03npm.config failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
I'm not sure but it appears that npm install
receive an error from one package that could be ignored but it is dispatching the EB error and stopping the whole process.
I'm running with this machine: 64bit Amazon Linux 2015.09 v2.0.4 running PHP 5.6
Does anyone know how we can fix this?
.ebextensions
. Did you find a solution, and if so would you care to share? Thanks. – Wadeeb-activity.log
andeb-commandprocessor.log
in order to get more information about this error. I found mine to be something to do with my npm installation itself. So it wasn't aneb
issue itself, I fixed that simple npm error and moved on thereafter. Hope this information helps someone out there =) – Adna