2

Using AWS Elastic Beanstalk I chose to launch an instance that runs NodeJS. EC2 instance launched but when I check what version of node is running I get this:

node --version

-bash: node: command not found

My EC2 instance AMI ID aws-elasticbeanstalk-amzn-2015.09.2.x86_64-nodejs-pv-201602232224 (ami-ae3fddce)

4

The AMI image by default doesn't add node to the bash PATH.

You can add a symlink in /bin, pointing at node using the following bash command.

sudo ln -sf `ls -td /opt/elasticbeanstalk/node-install/node-* | head -1`/bin/node /bin/node

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.