Skip to content

bug: npm uninstall -g failproofai does not remove hooks from Claude settings #20

@NiveditJain

Description

@NiveditJain

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

  1. Install the package: npm install -g failproofai
  2. Confirm hooks are written to ~/.claude/settings.json (and/or project/local settings)
  3. Remove the package: npm uninstall -g failproofai
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions