Skip to content

Instantly share code, notes, and snippets.

@cfsanderson
Last active July 4, 2017 04:12
Show Gist options
  • Save cfsanderson/32bc37416c1373c5314d9ea98146fa7c to your computer and use it in GitHub Desktop.
Save cfsanderson/32bc37416c1373c5314d9ea98146fa7c to your computer and use it in GitHub Desktop.
Install and setup script for NVM.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install node
command -v nvm
echo "===== should output 'nvm' ====="
echo "===== Next Step: install NPM dependencies ====="
echo "===== curl -Lks https://goo.gl/VkzXbb | bash ====="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment