Node Version Manager nvm

Updated: 18 February 2026

List installed versions

nvm ls

List remote versions available for install

nvm ls-remote

Install a specific version number

nvm install 8.0.0

Use the latest available 8.0.x release

nvm use 8.0

Attempt to upgrade to the latest working `npm` on the current node version

nvm install-latest-npm

Uninstall a version of node

nvm deactivate
nvm uninstall 8.8.1

Set v24.13.1 as the default version, to persist after system restart

nvm alias default v24.13.1

Node.js in Docker

Updated: 20 May 2023

Start a Node REPL session

docker run -it --rm --name my_node -v "$PWD":/usr/src/app -w /usr/src/app node:20

Run a JS script directly

docker run -it --rm --name my_node -v "$PWD":/usr/src/app -w /usr/src/app node:20 node the-script.js

Start a bash session

docker run -it --rm --name my_node -v "$PWD":/usr/src/app -w /usr/src/app node:20 /bin/bash

# then perhaps
npm install eslint --save-dev