</>CodexBash
All articles
Setup guides

Install Node.js with nvm

Install Node.js with a version manager instead of a one-off installer: nvm on macOS and Linux, nvm-windows on Windows, choosing an LTS, switching versions per project with .nvmrc, global packages, and fixing PATH and permission problems.

CodexBash, , 4 min read

You can install Node.js from its website in a minute, but sooner or later one project needs Node 20 and another Node 22, and a single installed version becomes a problem. A version manager solves that: install several versions side by side and switch with one command. This guide sets up nvm on macOS and Linux and nvm-windows on Windows, and shows how to pin a version per project.

Sign in to read the rest

The whole 4 minute article is free with an account, along with every problem, lesson and tutorial. No card.