NVM - Gerencie múltiplas instalações do Node.js

Image for post
Image for post

O que é o NVM?

Instalando no Linux e MacOS

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | $SHELL
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | $SHELL
Image for post
Image for post
Imagem 01: Output da execução do script de instalação do nvm
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
cat ~/.bashrc
source ~/.bashrc
nvm --version

Instalando no Windows

Image for post
Image for post

Utilizando o NVM

nvm install 14.15.0
nvm install --lts
nvm use 14.15.0
nvm ls
nvm uninstall 14.15.0

Conclusão

Palestrante, analista de sistemas e webmaster. Apaixonado pelo universo da tecnologia e um profundo admirador da filosofia do software livre.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store