fnm use 22

Category: Node.js & npm/yarn

fnm use 22

Switch the active Node version

Points the node command at the installed 22.x release for the current shell session. fnm resolves partial versions, so 22 matches the newest 22.x. Add fnm env --use-on-cd to your shell to switch automatically per directory.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.