From 265fcd2f1f256477f0594b48c9a09113af323178 Mon Sep 17 00:00:00 2001 From: IanMeyers Date: Fri, 6 Nov 2015 15:01:51 +0100 Subject: [PATCH] Updated bootstrap with support for node .12 via NVM --- node/install-nodejs.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node/install-nodejs.sh b/node/install-nodejs.sh index af8777b..8ba69fb 100644 --- a/node/install-nodejs.sh +++ b/node/install-nodejs.sh @@ -3,7 +3,14 @@ is_aml=`uname -r | grep amzn1.x86_64 | wc -l` if [ is_aml=1 ]; then + # install node through yum sudo yum -y install nodejs npm --enablerepo=epel + + # install nvm and update to Node v 0.12 + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash + . ~/.nvm/nvm.sh + nvm install 0.12 + nvm alias default 0.12 else echo "Unsupported OS" exit -1