affaan-m/ECC · error

Nasiko ${command} requires --version v0.1.0.

Error message

Nasiko ${command} requires --version v0.1.0.

What it means

Install/uninstall via the Nasiko CLI are pinned-release operations: after argument parsing, a --version value is mandatory. This fires when the mutation command was invoked without a qualified version, since the installer only accepts ECC-qualified pinned releases.

Source

Thrown at scripts/nasiko.js:52

    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 = {}) {
  const configured = process.env.ECC_NASIKO_CLI_EXECUTABLE;
  const normalized = normalizePlatform();
  const candidate = options.installDir

View on GitHub (pinned to 06c5e118c4)

Solutions

  1. Supply the required argument/option named in the message and re-run the command.
Defensive patterns

Strategy: validation

When it happens

Trigger: Triggered when nasiko.js rejects the current invocation: Nasiko <value> requires --version v0.1.0.

Common situations: Occurs while running scripts/nasiko.js with invalid arguments, missing flags, or a failing external dependency; the guard at scripts/nasiko.js:52 aborts the command with this message.


AI-assisted analysis of affaan-m/ECC@06c5e118c4 (2026-08-18). Data as JSON: /api/errors/a161b9be93600bfb. Report an issue: GitHub.