affaan-m/ECC · error
Warning: ${pmName} is not installed on your system
Error message
Warning: ${pmName} is not installed on your system What it means
setGlobal in the package-manager setup script warns that the package manager being set as global is not detected on the system. The setting is still recorded, but the chosen PM binary is unavailable; install it or pick one of the detected managers.
Source
Thrown at scripts/setup-package-manager.js:124
console.log(`${pmName}${current}`);
console.log(` Installed: ${installed ? 'Yes' : 'No'}`);
console.log(` Lock file: ${config.lockFile}`);
console.log(` Install: ${config.installCmd}`);
console.log(` Run: ${config.runCmd}`);
console.log('');
}
}
function setGlobal(pmName) {
if (!PACKAGE_MANAGERS[pmName]) {
console.error(`Error: Unknown package manager "${pmName}"`);
console.error(`Available: ${Object.keys(PACKAGE_MANAGERS).join(', ')}`);
process.exit(1);
}
const available = getAvailablePackageManagers();
if (!available.includes(pmName)) {
console.warn(`Warning: ${pmName} is not installed on your system`);
}
try {
setPreferredPackageManager(pmName);
console.log(`\n✓ Global preference set to: ${pmName}`);
console.log(' Saved to: ~/.claude/package-manager.json');
console.log('');
} catch (err) {
console.error(`Error: ${err.message}`);
process.exit(1);
}
}
function setProject(pmName) {
if (!PACKAGE_MANAGERS[pmName]) {
console.error(`Error: Unknown package manager "${pmName}"`);
console.error(`Available: ${Object.keys(PACKAGE_MANAGERS).join(', ')}`);
process.exit(1);View on GitHub (pinned to 06c5e118c4)
Solutions
- Install the named package manager or select an installed alternative.
- Set CLAUDE_PACKAGE_MANAGER to a package manager that exists on the system.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at scripts/setup-package-manager.js:124 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of affaan-m/ECC@06c5e118c4 (2026-08-18).
Data as JSON: /api/errors/6ef4c2972e5aec83.
Report an issue: GitHub.