{"record":{"id":"a161b9be93600bfb","repo":"affaan-m/ECC","slug":"nasiko-command-requires-version-v0-1-0","errorCode":null,"errorMessage":"Nasiko ${command} requires --version v0.1.0.","messagePattern":"Nasiko (.+?) requires --version v0\\.1\\.0\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/nasiko.js","lineNumber":52,"sourceCode":"    if (argument === '--version' || argument === '--install-dir') {\n      const value = argumentsList[index + 1];\n      if (!value || value.startsWith('--')) throw new Error(`Missing value for ${argument}.`);\n      options = {\n        ...options,\n        [argument === '--version' ? 'version' : 'installDir']: value,\n      };\n      index += 1;\n    } else if (argument === '--yes' || argument === '-y') {\n      options = { ...options, yes: true };\n    } else if (argument === '--dry-run') {\n      options = { ...options, dryRun: true };\n    } else if (argument === '--json') {\n      options = { ...options, json: true };\n    } else {\n      throw new Error(`Unknown Nasiko ${command} argument: ${argument}`);\n    }\n  }\n  if (!options.version) throw new Error(`Nasiko ${command} requires --version v0.1.0.`);\n  if (options.installDir) validateInstallDirectory(options.installDir);\n  return options;\n}\n\nfunction defaultExecutablePath() {\n  const normalized = normalizePlatform();\n  if (normalized.os === 'windows') {\n    return process.env.LOCALAPPDATA\n      ? path.join(process.env.LOCALAPPDATA, 'nasiko', 'bin', normalized.binaryName)\n      : null;\n  }\n  return path.join(os.homedir(), '.local', 'bin', normalized.binaryName);\n}\n\nfunction resolveExecutable(options = {}) {\n  const configured = process.env.ECC_NASIKO_CLI_EXECUTABLE;\n  const normalized = normalizePlatform();\n  const candidate = options.installDir","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/scripts/nasiko.js#L34-L70","documentation":"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.","triggerScenarios":"Triggered when nasiko.js rejects the current invocation: Nasiko <value> requires --version v0.1.0.","commonSituations":"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.","solutions":["Supply the required argument/option named in the message and re-run the command."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06c5e118c4d3e6c3b7f9445f973a2194c82de193","analyzedAt":"2026-08-18T11:27:13.915Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}