Skip to content

Instantly share code, notes, and snippets.

@h2ouw8n4
Created September 5, 2020 10:46
Show Gist options
  • Save h2ouw8n4/0965ed1af2312907a0e71cab995e8c54 to your computer and use it in GitHub Desktop.
Save h2ouw8n4/0965ed1af2312907a0e71cab995e8c54 to your computer and use it in GitHub Desktop.
# Install Node Version Manager
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh > ~/nvmInstall.sh
chmod +x ~/nvmInstall.sh && ~/nvmInstall.sh && source ~/.profile
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install --lts --latest-npm
rm ~/nvmInstall.sh
# Install my starter npm stuff
npm install --unsafe-perm -g gatsby-cli browserify gulp uglify-js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment