Skip to content

Instantly share code, notes, and snippets.

@peteroid
Last active April 12, 2017 02:50
Show Gist options
  • Save peteroid/2bed882b13727972f44f114d6b4aee4b to your computer and use it in GitHub Desktop.
Save peteroid/2bed882b13727972f44f114d6b4aee4b to your computer and use it in GitHub Desktop.
# install nvm for node and npm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
# reload nvm
export NVM_DIR="/home/ec2-user/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
# install node 7
nvm install 7
# show size and file count in the current directory
echo "$(du -h) with $(ls | wc -l) files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment