Install Node Version Manager (NVM)?
- Install Curl
sudo apt install -y curl
- Run the installation script
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
- Reopen the terminal or run
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
Install Node.js
nvm install 22.12.0
Setup specific Node.js for a project
22.12.0