The command is simply npm uninstall <name>

The Node.js documents https://npmjs.org/doc/ have all the commands that you need to know with npm.

A local install will be in the node_modules/ directory of your application. This won't affect the application if a module remains there with no references to it.

If you're removing a global package, however, any applications referencing it will crash.

Here are different options:

npm uninstall <name> removes the module from node_modules but does not update package.json

npm uninstall <name> --save also removes it from dependenciesin package.json

npm uninstall <name> --save-dev also removes it from devDependencies in package.json

npm uninstall -g <name> --save also removes it globally

Answer from Menztrual on Stack Overflow
🌐
ClaudeLog
claudelog.com › home › faqs › uninstall claude code
How to Uninstall Claude Code | ClaudeLog
November 11, 2025 - ... # Check installation location first where.exe claude # Remove the executable (adjust path as needed) Remove-Item -Path "C:\Users\YourUsername\AppData\Local\Claude\claude.exe" -Force ...
Discussions

How can I uninstall npm modules in Node.js? - Stack Overflow
As commonly known, any npm module can be installed by running a simple command: npm install . I have installed a few modules that I do not use any more and I just want to get the... More on stackoverflow.com
🌐 stackoverflow.com
[BUG] Can't run, uninstall or run claude
Environment Platform (select one): Mac sequoia 15.01 Bug Description Running install: npm install -g @anthropic-ai/claude-code npm error code ENOTEMPTY npm error syscall rename npm error path /opt/... More on github.com
🌐 github.com
3
August 8, 2025
[Feature Request] Add proper uninstallation/removal command for Claude-Flow
Persistent artifacts: After npm uninstall, the following directories and files remain: .swarm/ (with constantly updating SQLite database) ... Constantly changing files: The metrics files in .swarm/memory.db continuously update, causing git to show uncommitted changes: ... Interference with Claude Code... More on github.com
🌐 github.com
15
August 18, 2025
node.js - How to uninstall global package with npm? - Stack Overflow
I have installed webpack in this way: npm install -g webpack Now want to uninstall it: npm uninstall -g webpack Check it again, it didn't been uninstalled: webpack -v 3.1.0 Why? And, I use this ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
github.com › anthropics › claude-code › issues › 6920
No uninstall documentation for the native Claud Code build (Windows) · Issue #6920 · anthropics/claude-code
August 31, 2025 - While installing Claud Code is easy (irm https://claude.ai/install.ps1 | iex), there's no documented way to uninstall it when it was installed that way. I tried to return to the npm version (reasons not relevant here) by just deleting ~/.claude ...
Published   Aug 31, 2025
🌐
Claude
code.claude.com › docs › en › setup
Set up Claude Code - Claude Code Docs
brew uninstall --cask claude-code · Copy · Ask AI · npm uninstall -g @anthropic-ai/claude-code · Removing configuration files will delete all your settings, allowed tools, MCP server configurations, and session history.
🌐
Ctok
ctok.ai › 首页 › how to uninstall claude code
How to Uninstall Claude Code | Ctok Claude Code Group Subscription - Claude Code, Gemini, Codex
Check if globally installed npm ls -g @anthropic-ai/claude-code · Uninstall locally installed package npm uninstall @anthropic-ai/claude-code · Uninstall globally installed package npm uninstall -g @anthropic-ai/claude-code · Check if empty ...
🌐
npm
docs.npmjs.com › uninstalling-packages-and-dependencies
Uninstalling packages and dependencies | npm Docs
To remove a package from your node_modules directory, on the command line, use the uninstall command. Include the scope if the package is scoped. This uninstalls a package, completely removing everything npm installed on its behalf.
Find elsewhere
🌐
Vibecodingwithfred
vibecodingwithfred.com › home › blog › claude code installation guide: using irm script, npm setup, and https://claude.ai/install.ps1 script
Claude Code Installation Guide: Using irm Script, npm Setup, and https://claude.ai/install.ps1 Script | Vibe Coding With Fred
1 month ago - # Remove Bun installation bun uninstall -g @anthropic-ai/claude-code rm -f ~/.bun/bin/claude # Remove npm/Node.js installation npm uninstall -g @anthropic-ai/claude-code # Remove any nvm-specific installations # Check each nvm Node version you ...
🌐
GitHub
github.com › anthropics › claude-code › issues › 5364
[BUG] Can't run, uninstall or run claude · Issue #5364 · anthropics/claude-code
August 8, 2025 - Complete: cat /Users/ekowibowo/.npm/_logs/2025-08-08T02_34_15_657Z-debug-0.log 0 verbose cli /opt/homebrew/Cellar/node/23.9.0/bin/node /opt/homebrew/bin/npm 1 info using [email protected] 2 info using [email protected] 3 silly config load:file:/opt/homebrew/lib/node_modules/npm/npmrc 4 silly config load:file:/Users/ekowibowo/.npmrc 5 silly config load:file:/opt/homebrew/etc/npmrc 6 verbose title npm install @anthropic-ai/claude-code 7 verbose argv "install" "--global" "@anthropic-ai/claude-code" 8 verbose logfile logs-max:10 dir:/Users/ekowibowo/.npm/_logs/2025-08-08T02_34_15_657Z- 9 verbose logfile /User
Published   Aug 08, 2025
🌐
GitHub
github.com › ruvnet › claude-flow › issues › 670
[Feature Request] Add proper uninstallation/removal command for Claude-Flow · Issue #670 · ruvnet/claude-flow
August 18, 2025 - Currently, there is no official way to properly remove Claude-Flow from a repository after installation. Running npm uninstall -g claude-flow only removes the global package but leaves behind numerous artifacts and directories that continue ...
Published   Aug 18, 2025
🌐
YouTube
youtube.com › shorts › R0opqyKTA0k
Uninstall Claude Code RIGHT NOW - YouTube
Work with me: https://samuelgregory.co.uk---Support the content: https://www.patreon.com/0x5am5Twitter: @0x5am5Buy merch: https://flowst8.dev/store🤖 AI Tool...
Published   2 weeks ago
🌐
GitHub
github.com › anthropics › claude-code › issues › 1158
[BUG] Cannot open or use claude after last update (0.2.119) · Issue #1158 · anthropics/claude-code
May 19, 2025 - No commands work, to either enter a terminal TUI session, or using cli commands directly. ❯ npm list -g @anthropic-ai/claude-code --depth=0 /Users/ramos/.nvm/versions/node/v20.18.3/lib └── @anthrop...
Published   May 19, 2025
🌐
Arsturn
arsturn.com › blog › claude-code-troubleshooting-guide
Claude Code Not Working? A Complete Troubleshooting Guide
August 10, 2025 - When all else fails, a clean reinstall can be a surprisingly effective fix. Up to 40% of crashes & weird behaviors stem from corrupted installations or permission errors that a fresh start can solve. Uninstall Claude Code completely, then reinstall it using either npm or the native installer.
🌐
Medium
medium.com › @joe.njenga › how-i-fixed-the-stubborn-claude-code-update-error-in-wsl-a8398f18164d
How I Fixed the Stubborn Claude Code Update Error in WSL | by Joe Njenga | Medium
June 29, 2025 - Press enter or click to view image ... to fix it, I tried several approaches that seemed logical but ultimately failed: npm uninstall -g…...