Node.js is installed on Debian 12. It also comes with NVM (Node Version Manager) so you can install, manage and switch between different Node.js versions. Run nvm ls-remote to see all the available versions and nvm install to install a version (for example nvm install 22.5.1). You should see an output similar to the one bellow:

Downloading and installing node v22.5.1...
Now using node v22.5.1 (npm v10.8.2)
Creating default alias: default -> 22.5.1 (-> v22.5.1)


To switch to a specific Node.js version, use net use command (for example net use 22.5.1). You can see the current active version with node -v.
For usage details and other Node.js options, please read the official documentation.

 

War diese Antwort hilfreich? 1 Benutzer fanden dies hilfreich (1 Stimmen)