Skip to content

Instantly share code, notes, and snippets.

@drumadrian
Created July 17, 2017 05:28
Show Gist options
  • Save drumadrian/150c9adcb79f16be003951ff31613c21 to your computer and use it in GitHub Desktop.
Save drumadrian/150c9adcb79f16be003951ff31613c21 to your computer and use it in GitHub Desktop.
Install NVM (globally) on Amazon Linux as root user
wget https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh /home/ec2-user/install.sh
NVM_DIR=/usr/bin
bash /home/ec2-user/install.sh
mv /usr/bin/nvm.sh /usr/bin/nvm
nvm install 4.3
node -e "console.log('Running Node.js ' + process.version)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment