Skip to content

Commit

Permalink
Updated bootstrap with support for node .12 via NVM
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMeyers committed Nov 6, 2015
1 parent c109cc5 commit 265fcd2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions node/install-nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 265fcd2

Please sign in to comment.