June 2025
Intermediate to advanced
837 pages
24h 50m
English
As you’ve seen, it’s not straightforward to install multiple versions of Node.js in parallel on your system. Particularly if a library or an application should be executable on different systems, you need several parallel versions of the platform for testing. One solution to that is the Node Version Manager (nvm) command-line tool for Unix systems, which allows you to install and update Node.js. nvm works on Unix systems, macOS, and Windows Subsystem for Linux (WSL), and it enables you to switch between multiple versions on one system. The alternatives for Windows users are nodist, nvs, and nvm-windows.
Listing 2.20 shows the required command to run the installation of nvm.
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh ...
Read now
Unlock full access