Last active
December 17, 2015 14:08
-
-
Save dannycoates/5621744 to your computer and use it in GitHub Desktop.
update the node version on awsbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION=$NODE_VERSION | |
: ${VERSION:="stable"} | |
echo "installing nave" | |
git clone git://github.com/isaacs/nave.git | |
sudo ln -s /home/ec2-user/nave/nave.sh /usr/local/bin/nave | |
echo "using node" $VERSION | |
sudo nave/nave.sh usemain $VERSION | |
echo "updating (proxy) npm modules" | |
sudo su -l -c "npm install [email protected] --save" proxy | |
echo "updating (app) npm modules" | |
sudo su -l -c "npm install [email protected]" app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment