O nodejs possui um gerenciador de versões chamado “n” que pode ser instalado usando o npm:
npm install -g n # Instala o n globalmente n 0.12.7 # Instala e usa a versão 0.12.7
Outros comandos no n:
n # Output versions installed n latest # Install or activate the latest node release n stable # Install or activate the latest stable node release n # Install node n use [args ...] # Execute node with [args ...] n bin # Output bin path for n rm # Remove the given version(s) n --latest # Output the latest node version available n --stable # Output the latest stable node version available n ls
No Windows podemos usar o nbmw:
npm install -g nvmw # Instala o nvmw globalmente nvmw install v0.10.33 # Instala uma versão específica nvmw use v0.10.33 # Usa uma versão específica
Deixe um comentário