Problem
npm uninstall -g failproofai is not removing the failproofai hooks from Claude Code settings files after package removal.
The preuninstall lifecycle script should clean up all hooks written during installation, but they persist in settings files after uninstall.
Steps to Reproduce
- Install the package:
npm install -g failproofai
- Confirm hooks are written to
~/.claude/settings.json (and/or project/local settings)
- Remove the package:
npm uninstall -g failproofai
- Check settings files — hooks are still present
Expected Behavior
All failproofai hooks are fully removed from all affected settings files after uninstall. No third-party hooks are accidentally removed.
Settings Files Affected
~/.claude/settings.json (user scope)
<project>/.claude/settings.json (project scope)
<project>/.claude/settings.local.json (local scope)
Problem
npm uninstall -g failproofaiis not removing the failproofai hooks from Claude Code settings files after package removal.The
preuninstalllifecycle script should clean up all hooks written during installation, but they persist in settings files after uninstall.Steps to Reproduce
npm install -g failproofai~/.claude/settings.json(and/or project/local settings)npm uninstall -g failproofaiExpected Behavior
All failproofai hooks are fully removed from all affected settings files after uninstall. No third-party hooks are accidentally removed.
Settings Files Affected
~/.claude/settings.json(user scope)<project>/.claude/settings.json(project scope)<project>/.claude/settings.local.json(local scope)