
These steps will include choosing a Linux distribution (for example, Ubuntu). To enable and install WSL 2, follow the steps in the WSL install documentation. WSL 2 is the most recent version available for Windows and we recommend it for professional Node.js development workflows. This recommendation also applies if you plan to use a Windows Server production environment. Thank you for reading.If you are new to developing with Node.js and want to get up and running quickly so that you can learn, install Node.js on Windows. If it’s not the one you want, you can set it back to the default using nvm use default: ❯ node -v v16.18.0 ❯ nvm use default Now using node v18.3.0 (npm v8.11.0) It also states which version is set as the default, beside the default -> node line. If you want to see what versions are available for you to set as your default version of Node.js, try using nvm ls, which will return a list likethe one below. You can do that using nvm install: nvm install 18.10.0 To do that, you can use the nvm command like so: nvm alias default 18.10.0īefore you do that, though, make sure you have the version you want to use installed.

Nvm also lets you set the default version of Node.js so that you don’t have to constantly change it. If you need to install nvm, you can learn how to do that here. nvm is a really useful tool for changing your Node.js version on the fly. When developing projects and products in Node.js, it becomes essential to set the Node.js version being used on your computer.
