PMG Repository
View the PMG source code and contribute on GitHub
PMG requires no configuration - just install and use it as you normally
would with your package managers.
Installation
Using Homebrew (Recommended)
Using Go Install
Download Binary
Download the latest release from our GitHub releases page and add it to your PATH.Quick Setup
Automated Setup (Recommended)
Run PMG’s automated setup:- Creates
~/.pmg.rcwith package manager aliases - Adds a source line to your shell configuration files
- Supports bash, zsh, and fish shells
After running
pmg setup install, restart your terminal or run source ~/.zshrc (or your shell’s config file) to activate the aliases.Manual Usage (Alternative)
To run PMG without aliases:Supported Package Managers
PMG supports these package managers:| Package Manager | Status | Command |
|---|---|---|
npm | Active | pmg npm install <package> |
npx | Active | pmg npx <package> <action> |
pnpm | Active | pmg pnpm add <package> |
pnpx | Active | pmg pnpx <package> <action> |
bun | Active | pmg bun add <package> |
pip | Active | pmg pip install <package> |
uv | Active | pmg uv add <package> or pmg uv pip install <package> |
poetry | Active | pmg poetry add <package> |
yarn | Active | pmg yarn add <package> |
Troubleshooting
If PMG isn’t working after setup
- Restart your terminal
- Check that interception is active:
which npmshould resolve to~/.pmg/bin/npm(the PMG shim). If it points to system npm, make sure~/.pmg/binis early in your$PATH, or runtype npmto check for a shell alias. - Verify PMG installation:
pmg version
If packages are incorrectly blocked
- Run with
--verboseto see detection details - Check the SafeDep community for known issues
- Report false positives on GitHub Issues
Next Steps
- Learn what PMG is and how it works
- See the PMG repository for complete documentation and examples
- Join our Discord community for support
- Check out other SafeDep tools like Vet and SafeDep Cloud

