Last active
September 28, 2021 14:49
-
-
Save thiagosouza/875f2e5e5239853665f819f1a1603412 to your computer and use it in GitHub Desktop.
[Node.js] Node.js Setup with NVM #nodejs #nvm #npm #setup
This file contains hidden or 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
#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