affaan-m/ECC · error
Unknown Nasiko ${command} argument: ${argument}
Error message
Unknown Nasiko ${command} argument: ${argument} What it means
parseMutationArguments encountered an argument that is not one of the recognized install/uninstall flags (--version, --install-dir, --yes, -y, --dry-run, --json). The token is rejected before any install action runs.
Source
Thrown at scripts/nasiko.js:49
let options = { dryRun: false, installDir: undefined, json: false, version: undefined, yes: false };
for (let index = 0; index < argumentsList.length; index += 1) {
const argument = argumentsList[index];
if (argument === '--version' || argument === '--install-dir') {
const value = argumentsList[index + 1];
if (!value || value.startsWith('--')) throw new Error(`Missing value for ${argument}.`);
options = {
...options,
[argument === '--version' ? 'version' : 'installDir']: value,
};
index += 1;
} else if (argument === '--yes' || argument === '-y') {
options = { ...options, yes: true };
} else if (argument === '--dry-run') {
options = { ...options, dryRun: true };
} else if (argument === '--json') {
options = { ...options, json: true };
} else {
throw new Error(`Unknown Nasiko ${command} argument: ${argument}`);
}
}
if (!options.version) throw new Error(`Nasiko ${command} requires --version v0.1.0.`);
if (options.installDir) validateInstallDirectory(options.installDir);
return options;
}
function defaultExecutablePath() {
const normalized = normalizePlatform();
if (normalized.os === 'windows') {
return process.env.LOCALAPPDATA
? path.join(process.env.LOCALAPPDATA, 'nasiko', 'bin', normalized.binaryName)
: null;
}
return path.join(os.homedir(), '.local', 'bin', normalized.binaryName);
}
function resolveExecutable(options = {}) {View on GitHub (pinned to 06c5e118c4)
Solutions
- Remove or correct the unrecognized input; run the command with --help to list valid arguments/commands.
Defensive patterns
Strategy: validation
When it happens
Trigger: Triggered when nasiko.js rejects the current invocation: Unknown Nasiko <value> argument: <value>
Common situations: Occurs while running scripts/nasiko.js with invalid arguments, missing flags, or a failing external dependency; the guard at scripts/nasiko.js:49 aborts the command with this message.
AI-assisted analysis of affaan-m/ECC@06c5e118c4 (2026-08-18).
Data as JSON: /api/errors/e47532e5485cd716.
Report an issue: GitHub.