“Administrador de versión de nodo” Código de respuesta

nvm

## Ubuntu
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

## Set in your .bashrc or .zshrc
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

## Install the latest version LTS
nvm install --lts
Lucas Juan

.nvm Bash

# This loads nvm (Node Version Manager). Add this to your shell profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc)
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Odd Owl

Instalación del administrador de la versión del nodo

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash

  OR

  wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
Alive Albatross

Administrador de versión de nodo

# Follow This to install nvm for fish-shell
fisher install jorgebucaran/nvm.fish ## This will install fish package manager Fisher
# Then install Nvm package made for fish shell https://github.com/jorgebucaran/nvm.fish
fisher install jorgebucaran/nvm.fish
# Then restart or write this
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

## Install Node.js
nvm list-remote # to see all available node.js versions remotely
# Install particular Verson . You can install as many versions as you want as use one
nvm insall <version> ## example : nvm install 17.3.0
# use nvm list to list local installed versions and then use one version installed version
nvm use <version> ## example  : nvm use 17.3.0
# Now node.js is installed and using successfully
Wandering Walrus

Respuestas similares a “Administrador de versión de nodo”

Preguntas similares a “Administrador de versión de nodo”

Más respuestas relacionadas con “Administrador de versión de nodo” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código