Node.js + fnm
Fast Node Manager -- seamlessly switch between Node.js versions
Quick summary
fnm (Fast Node Manager) installs and manages multiple Node.js versions. It is written in Rust and is significantly faster than nvm. The bootstrapper installs the latest LTS version of Node.js and sets it as the default.
Common tasks
Basic Usage
node --versionBasic Usage
npm --versionBasic Usage
fnm install 22Basic Usage
fnm install 20What is it?
fnm (Fast Node Manager) installs and manages multiple Node.js versions. It is written in Rust and is significantly faster than nvm. The bootstrapper installs the latest LTS version of Node.js and sets it as the default.
Basic Usage
Check current version:
Install a specific Node version:
Switch between versions:
Set a default version:
List installed versions:
Install npm packages globally:
How it works
fnm adds a shim directory to your PATH and switches Node.js versions by updating symlinks. The shell integration (fnm env) ensures the right version is active in every new terminal. When you cd into a project with a .nvmrc file, fnm automatically reads the version and switches to it.