- Published on
WSL2 Install FNM(Fast Node Manager)
- Authors

- Name
- Piggy DP
- @xiaozhudxiaozhu
To install fnm (Fast Node Manager) on WSL2, follow these steps:
Open WSL2: Start your WSL2 terminal
Install fnm: You can install
fnmusing a script provided by the maintainers. Run the following command:curl -sSfL https://fnm.vercel.app/install | bashAdd fnm to Your Shell: After the installation, you need to add
fnmto your shell profile. If you're usingbash, add the following lines to your~/.bashrcfile:export PATH="$HOME/.fnm/node-versions/node/v$(fnm current)/bin:$PATH" eval "$(fnm env)"If you're using
zsh, add it to your~/.zshrcinstead.Reload Your Shell: To apply the changes, reload your shell configuration:
source ~/.bashrcOr for
zsh:source ~/.zshrcVerify the Installation: Check if
fnmis installed correctly by running:fnm --versionInstall Node.js: Now you can install Node.js versions using
fnm. For example, to install the latest LTS version:fnm install --ltsUse a Specific Version: To set a specific version of Node.js, you can use:
fnm use <version>
You should now have fnm installed and ready to manage your Node.js versions on WSL2.