Manage Node Versions With fnm
Install and switch Node.js versions fast, with .nvmrc support.
Run fnm use --install-if-missing 20 to switch to Node 20, installing it if needed.
01Command
Command
$ fnm use --install-if-missing 2002What it does
fnm is a fast Node version manager that reads .node-version and .nvmrc files and switches automatically. Add its shell hook once and each project can pin its own Node version without manual switching.
03Risk
!Warning: Enable the shell hook in your profile, otherwise automatic switching on cd will not work.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Homebrew formula: fnmEvidence: Fast and simple Node.js version manager. Packages fnm, a fast Node.js version manager written in Rust.
Last verified: 2026-09-22 · Category: Developer