DEV Community

Reynaldo Quispe Soca
Reynaldo Quispe Soca

Posted on • Edited on

2 1

Intall nvm for node in linux

  1. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
  2. Si te llega a marcar un error como el siguiente: nvm: command not found, simplemente debes añadir las siguientes líneas de código dentro de tu archivo code ~/.zshrc
  3. 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"
  4. Ahora ya podrá instalar cualquier version de node js

--------- COMMANDS FOR MANAGE THE VERSION OF NODE-----

  1. nvm alias default 12 (para poner una version por defecto)
  2. nvm i 12 (Para instalar una version de node)
  3. nvm use 12 (Para usar la version de node)

OJO. en cada terminal tienes que poner vnm use ...

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️