The clean way to uninstall would be first to uninstall all the node packages which you have installed, you can list all those packages using

nvm list

To uninstall a specific NodeJs package run

nvm uninstall v16.13.0

After you have uninstalled all the packages go to the directory

C:\Users\%USERNAME%\AppData\Roaming\nvm

there you will see unins***.exe you can perform a clean uninstall there.

This will only work if you are or have installed all the node versions using NVM (Node Version Manager)

Answer from Umer Kiani on Stack Overflow
🌐
GitHub
github.com › Schniz › fnm › issues › 96
How to uninstall or remove a installed version? · Issue #96 · Schniz/fnm
April 29, 2019 - You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert · {{ message }} Schniz / fnm Public · Notifications · You must be signed in to change notification settings · Fork 594 · Star 22.9k · New issueCopy link · New issueCopy link · Closed · #98 · Closed · How to uninstall or remove a installed version?#96 ·
Published   Apr 29, 2019
🌐
GitHub
github.com › Schniz › fnm
GitHub - Schniz/fnm: 🚀 Fast and simple Node.js version manager, built in Rust
🌎 Cross-platform support (macOS, Windows, Linux) ✨ Single file, easy installation, instant startup ... For bash, zsh and fish shells, there's an automatic installation script. First ensure that curl and unzip are already installed on your operating system. Then execute: ... On macOS, it is as simple as brew upgrade fnm.
Starred by 22.9K users
Forked by 594 users
Languages   Rust 66.5% | TypeScript 20.7% | JavaScript 8.2% | Shell 4.5% | Batchfile 0.1%
🌐
Fig
fig.io › manual › fnm › uninstall
fnm uninstall [version] | Fig
fnm uninstall · fnm use · fnm exec · fnm current · fnm list · fnm list-remote · fnm alias · fnm unalias · fnm completions · fnm default · fnm env · fnm help · Uninstall a Node.js version · On this page · Arguments · Options ·
🌐
Damir's Corner
damirscorner.com › blog › posts › 20250418-UsingFastNodeManagerInWindows.html
Using Fast Node Manager in Windows | Damir's Corner
Although the uninstaller promises to remove all installed versions of Node, I decided to do it by hand before running the uninstaller, as an extra precaution. The process was simple enough: ... Since NVM for Windows must be run with admin privileges, I had a couple of functions in my PowerShell profile to temporarily elevate the privileges when switching the Node version from a non-privileged terminal. I removed those as well by: ... Now I was ready to set up fnm.
🌐
freeCodeCamp
freecodecamp.org › news › fnm-fast-node-manager
How to Use fnm – Fast Node Manager
June 9, 2022 - Uninstalling a version of node is very similar to installing it. You just need to use sub-command uninstall instead of install. That's it. Removing fnm is as simple as removing the .fnm directory from your home and removing its specific config ...
🌐
Advanced Uninstaller
advanceduninstaller.com › Fast-Node-Manager-d00ffbade03830b7a424a49971cdb6a7-application.htm
Fast Node Manager version 1.37.1 by Schniz - How to uninstall it
The uninstall string is: winget uninstall --product-code Schniz.fnm_Microsoft.Winget.Source_8wekyb3d8bbwe7. Click the Uninstall button. A window asking you to confirm will come up. Confirm the removal by clicking Uninstall.
🌐
Advanced Uninstaller
advanceduninstaller.com › Fast-Node-Manager-d2b695aeb6b9eb0db37bfaf8a938bd50-application.htm
Fast Node Manager version 1.37.0 by Schniz - How to uninstall it
The uninstall string is: winget uninstall --product-code Schniz.fnm_Microsoft.Winget.Source_8wekyb3d8bbwe7. Press the Uninstall button. A window asking you to confirm will show up. Confirm the uninstall by pressing the Uninstall button.
🌐
Chocolatey
community.chocolatey.org › packages › fnm
Chocolatey Software | fnm - fast and simple Node.js version manager 1.38.1
Please read the fnm docs for a full usage guide. ... After uninstalling you will need to reverse any changes that you made when setting up your shell and you can remove your .fnm folder
Find elsewhere
🌐
LogRocket
blog.logrocket.com › home › getting started with fnm, a rust-built node.js version manager
Getting started with fnm, a Rust-built Node.js version manager - LogRocket Blog
June 4, 2024 - #in this case, fnm was in the 'share' folder cd $HOME/.local/share rm -rf fnm #removing this folder will uninstall this software · And we’re done! NVM (Node version manager) is an alternative to fnm that allows developers to install and manage ...
🌐
Fig
fig.io › manual › fnm
fnm | Fig
fnm uninstall · fnm use · fnm exec · fnm current · fnm list · fnm list-remote · fnm alias · fnm unalias · fnm completions · fnm default · fnm env · fnm help · Fast Node Manager · On this page · Subcommands ·
Top answer
1 of 4
28

I'm going to assume a few things here:

I had a similar issue to this (using Windows 11).

The main issue lies in that PowerShell profiles are not created automatically upon installation (for some reason). The profile path needs to exist for the fnm script (containing fnm environment variables) to run--as mentioned in the fnm GitHub page

Steps:

Here is how to set up the PowerShell profile:

  1. First, check that your profile does not exist. in PowerShell, run: notepad $profile.

    If Notepad cannot find the path, continue below, otherwise, jump to step 3.

  2. Open PowerShell using admin access and paste the code:

     ps:> if (!(Test-Path -Path $PROFILE)) {
               New-Item -ItemType File -Path $PROFILE -Force
          }
    

    This basically create the profile path. (script from Microsoft).

    Restart PowerShell.

  3. Now we're going to make sure PowerShell is able to run scripts. Open it and run:

    ps:> Get-ExecutionPolicy
    
    # If it says Restricted, then it won't run node, or it's associated env variables.
    
  4. To change it, open PowerShell in admin access, and use this code to change the restriction for PowerShell execution policies:

ps:> Set-ExecutionPolicy -ExecutionPolicy Unrestricted

# Accept the change and restart PowerShell again.

This is my preferred option, since I have not experimented with the other options--found in the link in this bullet point.

  1. Now, you should be able to open the Profile path by running:
ps:> notepad $PROFILE

# append the script from the `fnm` documentation into the file
ps:> fnm env --use-on-cd | Out-String | Invoke-Expression
  1. Now you should be able to just type node --version and it should work with no issue.
2 of 4
6

Copy the command:

fnm env --use-on-cd | Out-String | Invoke-Expression

Into $profile to save the settings.

🌐
Expertbeacon
expertbeacon.com › home › how to use fnm – fast node manager
How To Use Fnm – Fast Node Manager - ExpertBeacon
August 20, 2024 - That‘s all it takes to cleanly remove fnm when no longer needed. The self-contained one-line install and uninstall makes experimentation with fnm low risk.
🌐
Docs.rs
docs.rs › crate › fnm › 1.22.9
fnm 1.22.9 - Docs.rs
Uninstalls the node version specified in [VERSION]. Aliases a Node version to a given name. Aliases a Node version as default. Uses fnm alias underneath.
🌐
Linux Command Library
linuxcommandlibrary.com › man › fnm
fnm man | Linux Command Library
Prompts for installation if the ... Node.js versions currently installed by fnm. uninstall [version] Removes a specified Node.js version from the system....
🌐
Medium
medium.com › @erik.01 › the-ultimate-guide-to-node-js-version-managers-nvm-nvs-fnm-volta-and-asdf-part-2-61a23c78c496
The Ultimate Guide to Node.js Version Managers: NVM, NVS, fnm, Volta, and asdf | Part 2 | by Erik Harutyunyan | Medium
September 10, 2024 - Discover the best Node.js version managers: NVM, NVS, fnm, Volta, and asdf. Learn how to install, use, and choose the right tool for your development needs.