Manage Node Versions With fnm

Install and switch Node.js versions fast, with .nvmrc support.

macOSpackagescliversionLow risk
Run fnm use --install-if-missing 20 to switch to Node 20, installing it if needed.

01Command

Command
$ fnm use --install-if-missing 20

02What 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

RiskLow risk
CompatibilitymacOS with Homebrew installed
!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: fnm
    Homebrew · vendor-doc · 2026-09-20
    Evidence: 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

06Related solutions