Wednesday, August 23, 2017

NodeJs on Amazon EC2

Tutorial: Setting Up Node.js on an Amazon EC2 Instance

The gist of the tutorial is:

Make sure you are ssh'd onto the instance.
Grab nvm: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
Active . ~/.nvm/nvm.sh
Install node using nvm nvm install 4.4.5 (NOTE: You can choose a different version. Check out the remote versions first by running $ nvm ls-remote)
Finally, test that you have installed node Node correctly by running $ node -e "console.log('Running Node.js' + process.version)"
Hopefully this helps the next person.

No comments:

Post a Comment

Dharamart.blogspot.in