Troubleshooting
One page for install and setup problems, quick diagnostics, common issues, and step-by-step fixes for pair-cli.
Install or setup problem? This page collects every known issue and its fix, from permission errors to corrupted installs.
Quick Diagnostics
Before diving into specific issues, run these commands to gather diagnostic information:
Quick Fixes
| Issue | Quick Fix |
|---|---|
| Permission denied | Use nvm, or fix the npm prefix |
| Command not found | Check PATH, or use npx pair-cli |
| Node version | nvm use 18 |
| Network blocked | Use manual install |
| Files not created | Check directory permissions |
Permission Issues
Problem: EACCES or permission denied errors during installation
Recommended fix: use a Node version manager (nvm). It installs Node in your home directory, so global installs never need elevated permissions (and it fixes Node-version problems at the same time):
Alternatives if you can't use nvm:
Avoid sudo npm install -g: it hides the underlying problem and creates root-owned files that break later installs.
On Windows:
Problem: Can't write to /usr/local/lib/node_modules
Same root cause: npm's global prefix points at a system directory. Use nvm (recommended, above) or move the prefix:
Node Version Issues
Problem: Unsupported Node.js version or compatibility errors
Check your Node version:
Fix with Node Version Manager (recommended):
Fix with Volta (alternative):
Problem: Multiple Node versions causing conflicts
pnpm Issues
Problem: pnpm command not found
Install pnpm:
Problem: pnpm store corruption or cache issues
Clean and reinstall:
Problem: ERR_PNPM_STORE_BROKEN or store corruption
Reset pnpm completely:
Command Not Found & PATH Issues
Problem: pair-cli command not found after installation
Verify installation location:
Fix PATH issues:
Problem: Command exists but fails to run
Clean reinstall steps:
Problem: Version conflicts or "command not found" after update
Deterministic cleanup:
Native Build Failures
Problem: node-gyp errors or native module build failures
On macOS:
On Linux (Ubuntu/Debian):
On Linux (CentOS/RHEL/Fedora):
On Windows:
Offline/Network-Restricted Installs
Problem: No internet access or corporate firewall blocks npm
Use manual artifacts:
-
Download from GitHub Releases:
pair-cli-manual-vX.Y.Z.zipfor manual installation
-
Extract and use:
On Windows, run pair-cli.cmd from the extracted archive instead of pair-cli (use Git Bash or WSL if you hit line-ending or path issues).
Problem: Corporate proxy blocking installs
Runtime Issues
Problem: pair-cli install fails with "permission denied"
Solution: Ensure write access to the target directory.
Problem: pair-cli install runs but no files are created
Solutions:
Problem: Installed assets seem outdated
Solution: Update to the latest version.
Getting Additional Help
If these solutions don't resolve your issue:
- Check existing issues: GitHub Issues
- Ask the community: GitHub Discussions
- Open a new issue: Include output from these diagnostic commands:
Include in your report: operating system and version, Node.js and npm/pnpm versions, the complete error message, and the steps you've already tried.
Do not include: personal paths with usernames, API keys or tokens, corporate proxy credentials.
Prevention
- Always use Node 18+ (managed with nvm) and pnpm
- Install globally with nvm-managed Node, or locally with
pnpm dlx - Test in a clean directory first
- Keep pair-cli updated:
npm update -g @foomakers/pair-cli
Related
- FAQ: questions about the process, languages, tools and customization
- Quickstart: the install steps these fixes refer to
- Verify your setup: the checklist to run after a fix