Troubleshooting
Start with PATH and VS Code checks if the installer succeeded but the command still is not available.
Quick Diagnostic
Run these commands in PowerShell to confirm Node.js, npm, and the resolved CLI command:
node --version
npm --version
ellygent --help
ellygent --version
npm bin -g
npm list -g --depth=0
where.exe ellygent
Get-Command ellygentInstallation Bootstrap Issues
Node.js LTS is required because Ellygent CLI is currently installed from GitHub using npm.
winget install OpenJS.NodeJS.LTS
node --version
npm --version
irm https://ellygent.com/cli/install.ps1 | iexnpm should be installed together with Node.js LTS. If node --version works but npm --version does not, reinstall Node.js LTS and reopen PowerShell.
node --version
npm --version
winget install OpenJS.NodeJS.LTSRetry the checkout-and-build install manually so you can see the full clone, npm, or build error output.
git clone --depth 1 https://github.com/EEQuality/ellygent-cli.git
cd ellygent-cli
npm install
npm run build
npm install -g .The global npm bin directory must be present in PATH before PowerShell can resolve ellygent.
npm bin -g
npm list -g --depth=0
where.exe ellygentTroubleshooting PATH Issues
These sections cover the most common Windows-specific installation failures.
VS Code caches PATH when it starts. If the installer completed successfully in PowerShell, restarting VS Code usually fixes the integrated terminal immediately.
# Close all VS Code windows completely
# Reopen VS Code
# Open a new PowerShell terminal
ellygent --help$env:Path += ";$env:APPDATA\npm"
ellygent --helpThese commands show whether the current terminal can see the install directory and the resolved binary.
npm bin -g
where.exe ellygent
Get-Command ellygent
[Environment]::GetEnvironmentVariable("Path", "User")Use this only if npm installed the CLI successfully but PowerShell still cannot resolve the global npm bin directory.
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
$npmBin = npm bin -g
if ($userPath -notlike "*$npmBin*") {
[Environment]::SetEnvironmentVariable("Path", "$userPath;$npmBin", "User")
}Multiple Ellygent CLI Installations
If you installed both an older binary-based CLI and the new npm/GitHub workflow, whichever command is first in PATH wins.
where.exe ellygent
npm bin -g
npm list -g --depth=0If where.exe ellygent shows multiple locations, remove or deprioritize the older entry so the official binary is used first.
npm E404 when installing @ellygent/cli
Use either the PowerShell installer wrapper or a direct GitHub checkout installation.
irm https://ellygent.com/cli/install.ps1 | iexgit clone --depth 1 https://github.com/EEQuality/ellygent-cli.git
Set-Location ellygent-cli
npm install
npm run build
npm install -g .where.exe ellygent
ellygent --versionCommon Issues & Solutions
Symptoms:
Error: 401 Unauthorized or login failed
Common Causes:
Invalid or expired Personal Access Token
Wrong API URL
An older CLI build is being resolved first
Solutions:
1. Verify token format
# Confirm the token starts with elly_pat_
# Then retry with the same PAT2. Check API URL
ellygent config
# Verify api-url is correct3. Regenerate PAT
# Go to Account -> Personal Access Tokens in the web UI
# Revoke the old token and create a new one4. Retry PAT login
ellygent auth login --token <your-personal-access-token>
ellygent whoamiSymptoms:
ECONNREFUSED, ETIMEDOUT, or unable to reach the API
Common Causes:
Firewall or proxy blocking connections
Incorrect API URL
API service is down
Solutions:
1. Check API URL
ellygent config
# Verify api-url is correct and accessible2. Test connectivity
curl https://www.ellygent.com/api/health
# Should return 200 OK3. Configure proxy if needed
export HTTP_PROXY=http://proxy.example.com:8080
export HTTPS_PROXY=http://proxy.example.com:80804. Check firewall
# Ensure outbound HTTPS (443) is allowed
# Contact IT if behind a corporate firewallSymptoms:
Sync command fails, ZIP extraction errors, or missing files
Common Causes:
Network interruption during download
Insufficient disk space
Corrupt ZIP package
Project or version not found
Solutions:
1. Verify project and version exist
ellygent context projects --org <org-name>
ellygent context versions --project <project-id>2. Check disk space
df -h . # Unix/macOS
# Ensure sufficient free space3. Retry sync
ellygent context pull --project <project-id> --version <version>4. Clean and retry
rm -rf .ellygent/
ellygent context pull --project <project-id> --version <version>Symptoms:
Token expired or invalid token errors
Common Causes:
PAT was revoked
The stored token no longer has access
A different CLI install is being used
Solutions:
1. Re-authenticate
ellygent auth login --token <your-personal-access-token>2. Generate new PAT
# Go to Account -> Personal Access Tokens
# Create a new token and update environment3. Clear and re-login
rm ~/.ellygent/config.json
ellygent auth login --token <your-personal-access-token>Getting Help
Gather Diagnostic Info
# System information
node --version
npm --version
ellygent --help
ellygent --version
# Current configuration
ellygent config
# Environment variables
Get-ChildItem Env:ELLYGENT*
# Recent error messages
ellygent <command> 2>&1 | Tee-Object error.logContact Support
Email: contact@ellygent.com
GitHub Issues: ellygent-cli/issues
Installation Guide: Install Ellygent CLI on Windows