I'm attempting to start up EC2 instances with the Bitnami MEAN stack AMI (bitnami-meanstack-3.2.9-0-r21-linux-ubuntu-14.04.3-x86_64-hvm-ebs-mp-7045c7ce-794f-40b1-ae20-1955a798aef6-ami-9eb4c189.3 (ami-fb156988)) and run a bit of script via the User Data to clone a git repo, run NPM install and then run that app with node. However, looking at the cloud-init-output.log I can see that the
git clone and
npm install are fine, but when it comes to run node (
node main) it has the error:
/var/lib/cloud/instance/scripts/part-001: line 8: node: command not found
2016-10-26 11:51:59,596 - util.py[WARNING]: Failed running /var/lib/cloud/instan
node cannot be found. Any ideas why this might be? Should I use a different method to achieve what I was trying to do?
Many thanks for advice.