Skip to content

Instantly share code, notes, and snippets.

@thiagosouza
Last active September 28, 2021 14:49
Show Gist options
  • Save thiagosouza/875f2e5e5239853665f819f1a1603412 to your computer and use it in GitHub Desktop.
Save thiagosouza/875f2e5e5239853665f819f1a1603412 to your computer and use it in GitHub Desktop.
[Node.js] Node.js Setup with NVM #nodejs #nvm #npm #setup
#node
#https://nodejs.org/en/download/
#nvm
#https://github.com/creationix/nvm#install-script
cd /tmp
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#run source command to update your terminal
source ~/.bashrc
nvm use 14
#npm - the package manager for node.js.
#https://docs.npmjs.com/cli/install
curl -L https://www.npmjs.com/install.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment