JavaScript Runtime Env
2025-01-08
Open-Source, Cross-Platform JavaScript Runtime Environment
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Append to .bashrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Installs per user, not root, so avoids perms issues.
nvm install 20 # ver 20
node -v # test install
$ npm list
/home/anne
|_(empty)