-
Couldn't load subscription status.
- Fork 4
Installation Guide
This guide will walk you through installing Claude Hooks Manager on your system.
Before installing Claude Hooks Manager, ensure you have:
- Node.js (version 14 or higher)
- npm or yarn package manager
- Git (version 2.9 or higher)
# Check Node.js version
node --version
# Check npm version
npm --version
# Check Git version
git --versionInstall Claude Hooks Manager globally to use it across all your projects:
npm install -g claude-hooks-managerOr with yarn:
yarn global add claude-hooks-managerFor project-specific installation:
npm install --save-dev claude-hooks-managerOr with yarn:
yarn add --dev claude-hooks-managerClone and install from the repository:
# Clone the repository
git clone https://github.com/your-repo/claude-hooks-manager.git
cd claude-hooks-manager
# Install dependencies
npm install
# Link globally
npm linkAfter installation, verify that Claude Hooks Manager is properly installed:
claude-hooks --versionYou should see the version number displayed.
Navigate to your project directory and initialize:
cd your-project
claude-hooks initInstall the recommended default hooks:
claude-hooks install --defaultsCheck the status of installed hooks:
claude-hooks statusNo additional setup required. If you encounter permission issues:
sudo npm install -g claude-hooks-manager- Run the installation in an Administrator command prompt
- If using Git Bash, ensure it's in your PATH
- You may need to enable script execution:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
If you encounter permission issues:
sudo npm install -g claude-hooks-managerOr configure npm to install global packages without sudo:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc-
"command not found" after global installation
- Ensure npm's global bin directory is in your PATH
- Run
npm config get prefixto find the installation location
-
Permission denied errors
- Use sudo (not recommended) or configure npm properly
- See platform-specific notes above
-
Node version too old
- Update Node.js to version 14 or higher
- Use a version manager like nvm or n
If you encounter issues:
- Check the Troubleshooting Guide
- Search existing GitHub Issues
- Create a new issue with your error details
Now that you have Claude Hooks Manager installed:
- Read the Getting Started Guide
- Explore available Hooks Reference
- Learn about Configuration