Quick diagnostics
Before troubleshooting specific issues, run these diagnostic commands:Common issues
Nothing installs when I run pm-auto install
Nothing installs when I run pm-auto install
This usually indicates a configuration path issue.Symptoms:
- No packages are installed
- No error messages appear
- Commands seem to complete instantly
-
Check if config path is set:
-
Register your config file:
-
Verify the file exists:
-
Use absolute path if relative path fails:
Command hangs and never completes
Command hangs and never completes
This happens when an interactive command is marked as non-interactive.Symptoms:Common interactive commands:
- Installation freezes
- Terminal becomes unresponsive
- Process doesn’t complete or show progress
"interactive": true for commands that prompt for user input:create-next-appcreate-react-appcreate-viteshadcn initprisma init
Wrong package manager is being used
Wrong package manager is being used
PM-Auto uses the package manager specified in your preset configuration.Symptoms:
- Commands execute with npm instead of pnpm/yarn/bun
- Package manager warnings appear
- Lock files don’t match expected package manager
-
Check your preset’s packageManager field:
-
Update the packageManager in your config:
-
Re-register your config:
Config file not found or can't be read
Config file not found or can't be read
PM-Auto cannot locate or read your configuration file.Symptoms:
- Error: “Config file not found”
- Error: “Cannot read config”
pm-auto listshows no presets
-
Verify file path and permissions:
-
Check file read permissions:
-
Use absolute path:
-
Verify config path is stored correctly:
JSON syntax errors in config file
JSON syntax errors in config file
Your configuration file contains invalid JSON syntax.Symptoms:
- Error: “Unexpected token”
- Error: “JSON parse error”
- Config file won’t load
-
Trailing commas (not allowed in JSON):
-
Comments in JSON (not allowed):
-
Single quotes instead of double quotes:
- JSONLint
- VS Code JSON validation (built-in)
jqcommand line tool:jq . config.json
Permission denied errors during installation
Permission denied errors during installation
You don’t have permission to install packages globally or in the current directory.Symptoms:
- Error: “EACCES: permission denied”
- Error: “EPERM: operation not permitted”
- Installation fails partway through
-
For global installations, fix npm permissions:
-
For local installations, check directory permissions:
- Avoid using sudo with npm/pnpm/yarn (causes permission issues)
- For Windows, run terminal as administrator
Preset not found when running install
Preset not found when running install
The preset name you specified doesn’t exist in your configuration.Symptoms:
- Error: “Preset not found”
- Error: “Unknown preset”
-
List all available presets:
- Check preset name spelling: Preset names are case-sensitive. Ensure the name matches exactly.
-
Verify presetName matches the key:
-
Re-register config after adding new presets:
Packages install but with wrong versions
Packages install but with wrong versions
Packages are installed but not with the versions specified in your config.Symptoms:
- Different version than specified gets installed
- Latest version installs despite specifying exact version
-
Check version syntax in config:
-
Use dry-run to preview commands:
-
Verify version exists on npm registry:
Dev dependencies install as regular dependencies
Dev dependencies install as regular dependencies
Packages marked as dev dependencies install as regular dependencies.Symptoms:After fixing:
- Dev packages appear in
dependenciesinstead ofdevDependencies - Wrong section in package.json
dev field is set to true:Getting more help
If your issue isn’t covered here:- Check command documentation:
-
Report an issue:
- GitHub Issues
- Include your PM-Auto version (
pm-auto -V) - Include relevant config (sanitized)
- Include error messages
-
Review examples:
- Use
--dry-runto preview commands - Check the auto-generated example in your config
- Use