NVM - Administrador de versiones para NodeJS
nvm le permite instalar y usar diferentes versiones de NodeJS usando la línea de comandos. nvm funciona en cualquier shell POSIX compatible (sh, dash, ksh, zsh, bash), y en Sistemas Operativos UNIX (Tipos UNIX), macOS y Windows WSL.
Instalar
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
En caso de que no tenga CURL instalado puede usar la variante wget
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
Actualizar el PATH
Para actualizar el PATH ejecute un:
$ source .bashrc
o
$ source .bash_profile
También puede hacer un logout/login
Instalar NodeJS
Versión 18 (LTS)
$ nvm install 18
Comprobar la versión
$ node -v
v18.15.0
Versión 19
$ nvm install 19
Comprobar la versión
$ node -v
v19.8.1
Activar versión
Para activar una versión especifica ejecutamos:
$ nvm use version
ejemplo:
$ nvm use 18
Ayuda
$ nvm
Referencias
Leave NVM - Administrador de versiones para NodeJS to:
Read more #node posts
Best Posts From srdotlibre
We have not curated any of srdotlibre's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From srdotlibre
- Instalar/configurar ProFTPD en RHEL, CentOS, Fedora
- Protege tus datos con PostgreSQL Backup
- Noticias del Software Libre – 20230423
- NVM - Administrador de versiones para NodeJS
- 6 Comandos para administrar PostgreSQL
- Richard Stallman quote about Sharing knowledge
- ¿Cómo actualizar NetBSD de una versión a otra?
- Instalando Guest Additions en VirtualBox
- Fedora 37 - Mate Desktop
- GNOME 44 - Desktop - Lo último de GNOME