Hello guys, is there a bug to safely and permanently remove claude code and its cli from mac nowadays?
I use the global npm command, but it doesn't working... the extension is also removed and I delete the personal claude settings from the user directory
Have anybod the same problem?
npm uninstall -g u/anthropic-ai/claude-code bun uninstall -g u/anthropic-ai/claude-code rm -rf $HOME/.bun/bin/claude rm -rf $HOME/.bun/bin/../install/global/node_modules/@anthropic-ai rm -f $HOME/.npm-global/bin/claude rm -rf $HOME/.local/share/claude rm ~/.claude.json rm -rf ~/.claude/
The new Max plans should count towards Claude Code usage now, but I still get charged and don't see an option to change that.
Does anyone have the same problem?
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
If it doesn't work with npm uninstall <module_name> try it globally by typing -g.
Maybe you just need to do it as an superUser/administrator with sudo npm uninstall <module_name>.