Sure thing! Un-installing Node.js is pretty painless—you just need to know how it was installed and which operating system you’re on. Pick the section that matches your setup. If you’re not 100 % sure, skim the “How was Node installed?” checklist first.
0. Quick “How was Node installed?” checklist
Did you run an installer you downloaded from nodejs.org?
→ That’s the “stand-alone installer” method (Windows .msi or macOS .pkg).
Do you use nvm, nvm-windows, fnm, asdf, or any other version manager?
→ That’s the “version-manager” method.
Did you install via a package manager (Homebrew on macOS, apt/dnf/yum/pacman on Linux, or Chocolatey/Scoop on Windows)?
→ That’s the “package-manager” method.
If you’re still unsure, just follow the instructions for each method that might apply—you won’t break anything by “double-removing.”
1. Windows
a) Stand-alone MSI installer
Settings ▶ Apps ▶ Installed apps (or Control Panel ▶ Programs and Features on older Windows).
Find “Node.js” (sometimes “Node.js (x64)” or similar).
Click Uninstall → follow the wizard.
b) Chocolatey
powershell
choco uninstall nodejs
# or, if you have the LTS build:
choco uninstall nodejs-lts
After any of the methods above, open a new terminal/PowerShell window and run:
bash
node -v
npm -v
You should see “command not found” (Unix/macOS) or “‘node’ is not recognized” (Windows). If a version still prints, check your PATH for leftover entries.
Need Node again later?
Instead of reinstalling the stand-alone package next time, consider using nvm (or nvm-windows) so you can install/uninstall versions with a single command and avoid system-wide conflicts.
Let me know if anything here is unclear or if you hit a snag! 🙂
User
How to uninstall node using power shell or cmd
Assistant
Below are the common, 100 % command-line ways to remove Node.js on Windows.
Pick the scenario that matches how it was installed; all commands work in either PowerShell or cmd (unless otherwise noted).
1. If you installed Node with the official MSI (nodejs.org)
The MSI registers an uninstall string in the Windows Installer database, so we can call it directly:
powershell
# 1️⃣ Find Node's product code
wmic product where "Name LIKE 'Node.js%'" get IdentifyingNumber, Name
# Output looks like:
# {0A123B4C-56D7-890E-F1G2-H3IJKL456M78} Node.js
# 2️⃣ Use msiexec to uninstall it
msiexec /x {0A123B4C-56D7-890E-F1G2-H3IJKL456M78} /quiet
/quiet ⇒ no UI.
Replace the GUID with the one returned by the first command.
2. Chocolatey install (choco)
powershell
choco uninstall nodejs # Current release
# or
choco uninstall nodejs-lts # LTS build
Add -y for a non-interactive run: choco uninstall nodejs -y.
nvm list # Shows installed versions
nvm uninstall 20.11.0 # Example – repeat for each version
If you want to remove nvm itself:
powershell
# Go to the install directory (default is C:\nvm) and run:
.\uninstall.cmd
5. Manual “nuke it” method (works no matter how it was installed)
If you just want everything gone and don’t care how it was installed:
User
What is chocolatey
Assistant
Chocolatey 101 🍫🖥️
Chocolatey (a k a choco) is a package manager that brings apt-get/Homebrew-style software management to Windows. Instead of hunting for installers on the web, you type a command and Chocolatey fetches, installs, upgrades, or removes the program for you—scripts, dependencies, registry keys, PATH edits, everything.
1. Key facts
Details
What it is
A CLI-based package manager for Windows, built on top of NuGet (.nupkg files).
Who maintains it
Chocolatey Software, Inc. (open-source core + paid “Pro”/“Business” tiers).
Works on
Windows 7 → 11, Windows Server 2008 R2 → 2022.
How it works
Each package is a tiny ZIP (.nupkg) that contains PowerShell install/uninstall scripts plus metadata (version, checksums, URL of silent installer, etc.).
Feeds/Repos
Default “Community” repo (≈ 10 000 audited packages) or your own internal feed (Azure Artifacts, Nexus, Artifactory…).
License
FOSS (Apache 2.0) for the tooling; optional paid features for enterprises.
# Remove Node-related entries from the user PATH
$envPath = [Environment]::GetEnvironmentVariable("Path", "User") -split ";"
$envPath = $envPath | Where-Object { $_ -notmatch "nodejs" }
[Environment]::SetEnvironmentVariable("Path", ($envPath -join ";"), "User")
Sign out & back in (or restart the shell) for PATH changes to stick.
6. Verify it’s gone
powershell
node -v # should print: 'node' is not recognized...
npm -v
Quick checklist
Install Method
Uninstall Command
MSI (nodejs.org)
msiexec /x {GUID}
Chocolatey
choco uninstall nodejs
Scoop
scoop uninstall nodejs
nvm-windows
nvm uninstall <version>
“I don’t know”
Manual delete + PATH clean
Need a hand figuring out which method you originally used?
Run where node (cmd) or Get-Command node (PowerShell) and let me know what paths show up—happy to guide you the rest of the way!
Temporarily relaxes script policy (Bypass scope = current shell only).
Downloads & executes the official installer script.
Adds C:\ProgramData\chocolatey\bin to PATH, so choco is now global.
Test:
powershell
choco --version
4. Everyday commands
powershell
choco search vscode # find packages
choco install vscode -y # install silently (-y = yes to prompts)
choco uninstall vscode -y # remove
choco upgrade vscode -y # upgrade that one package
choco upgrade all -y # upgrade EVERYTHING
choco list --local-only # list installed choco packages
choco outdated # show what needs upgrading
Add --pre to include prerelease versions, --version=1.2.3 to pin, etc.
5. Creating your own package (30-second overview)
choco new mycoolapp --version=2.4.1
Creates a scaffold folder with tools\chocolateyInstall.ps1, nuspec, etc.
Edit tools\chocolateyInstall.ps1 – usually a silent installer line:
choco push --source https://mynexus/repository/choco/ (or the public feed if allowed).
Voilà—your own private package!
6. Chocolatey vs. other Windows options
Tool
GUI?
Silent Installs
Version Pinning
Private Feeds
Policy Control
Chocolatey
❌ CLI (GUI addons exist)
✅ (MSI/EXE, scripts)
✅
✅
✅ (Pro/Business)
Winget (Microsoft)
❌ CLI
✅ (MSIX/MSI/EXE)
⚠️ limited
☑️ (GitHub repo, REST)
🔜 evolving
Windows Store
✅
N/A (user clicks)
Auto-latest only
❌
❌
Manual download
❌
❌
❌
❌
❌
Chocolatey is older (2011), extremely scriptable, and supports pre-installed software detection. Winget is newer, baked into Windows 11 by default, but still catching up on enterprise features.
7. Security considerations
• Every community package is moderated: checksums verified, silent install must match vendor’s hash, no malicious scripts.
• Packages run as Admin—like any installer—so only install from trusted sources or your own repo.
• Businesses often disable the community feed and whitelist internal packages only.
8. When NOT to use Chocolatey
• You need a GUI-only workflow (although Chocolatey GUI exists).
• Your organization already standardized on winget or SCCM/MECM.
• You’re on Windows S mode (can’t run unsigned PowerShell scripts).
TL;DR
Chocolatey is the “apt-get for Windows,” letting you automate installs, upgrades, and removals of virtually any Windows software through a single command (choco install <package>). It’s scriptable, works offline, has both free and enterprise flavors, and is a staple in many DevOps and IT automation toolchains.
Feel free to ask if you want demos, advanced flags, or help deciding between Chocolatey and winget!