Troubleshooting
Common issues and solutions for pair-cli installation and usage.
Common issues and solutions for pair-cli installation and usage.
Installation Issues
Permission Errors
Problem: npm install -g @pair/pair-cli fails with permission errors.
Solution: Use a Node version manager or install locally.
Command Not Found
Problem: pair-cli command not found after installation.
Solutions:
Node.js Version Issues
Problem: Errors about unsupported Node version.
Solution: Ensure Node 18+ is active.
Runtime Issues
Target Directory Permissions
Problem: pair-cli install fails with "permission denied".
Solution: Ensure write access to target directory.
Network/Proxy Issues
Problem: Installation fails due to network restrictions.
Solutions:
Platform-Specific Issues
macOS
Problem: "command not found" after global install.
Solution: Check PATH and npm prefix.
Linux
Problem: Native module compilation fails.
Solution: Install build tools.
Windows
Problem: Line ending or path issues.
Solutions:
Verification Issues
Assets Not Installing
Problem: pair-cli install runs but no files are created.
Solutions:
Outdated Assets
Problem: Installed assets seem outdated.
Solution: Update to latest version.
Getting Help
Diagnostic Information
When reporting issues, include:
Support Channels
- Documentation: Check this guide and the Installation FAQ
- Issues: File bugs at GitHub Issues
- Discussions: Ask questions in GitHub Discussions
Quick Fixes
| Issue | Quick Fix |
|---|---|
| Permission denied | chmod 755 . or use sudo |
| Command not found | npx pair-cli or check PATH |
| Node version | nvm use 18 |
| Network blocked | Use manual install |
| Files not created | Check directory permissions |
Prevention
- Always use Node 18+ with pnpm
- Install globally with nvm, locally with pnpm dlx
- Test in a clean directory first
- Keep pair-cli updated:
npm update -g @pair/pair-cli