DEV Community

Miguel Ramirez
Miguel Ramirez

Posted on • Updated on

Nvm #Node #install #version #Linux

CONTRALAREMOS EL USO DE LAS VERSIONES DE NODE QUE DESEES USAR EN TU PROYECTO.

Empezamos con el siguiente comando para poder posteriormente realizar la instalacion de NVM :

curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh -o install_nvm.sh
Enter fullscreen mode Exit fullscreen mode

INSTALAMOS EL NVM:

bash install_nvm.sh
Enter fullscreen mode Exit fullscreen mode

PODEMOS YA ABRIR UNA NUEVA CONSOLA O SIMPLEMENTE APLICAMOS ESTO:

source ~/.profile
Enter fullscreen mode Exit fullscreen mode

AHORA SI PUEDES USAR NVM, puedes instalar versiones de node y usar la que desees.

nvm install 12.12.0
Enter fullscreen mode Exit fullscreen mode

LUEGO PARA QUE NODE USE UNA VERSION CON NVM LE INDICAMOS:

nvm use 12.12.0
Enter fullscreen mode Exit fullscreen mode

Y REVISAMOS QUE ESTAMOS USANDO ESA VERSION EN NODE.

node -v
Enter fullscreen mode Exit fullscreen mode

LISTO!

Top comments (0)