{"record":{"id":"feb7f0ad027250da","repo":"affaan-m/ECC","slug":"unsupported-nasiko-command-command","errorCode":null,"errorMessage":"Unsupported Nasiko command: ${command}","messagePattern":"Unsupported Nasiko command: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/nasiko.js","lineNumber":134,"sourceCode":"    return 0;\n  }\n  if (command === 'install') {\n    const options = parseMutationArguments(rest, 'install');\n    const result = await installNasiko(options);\n    if (options.json) process.stdout.write(`${JSON.stringify(result, null, 2)}\\n`);\n    else if (result.dryRun) process.stdout.write(`Would install Nasiko ${result.version} to ${result.destination}.\\n`);\n    else process.stdout.write(`${result.reused ? 'Using existing' : 'Installed'} Nasiko ${result.version} at ${result.destination}.\\n`);\n    return 0;\n  }\n  if (command === 'uninstall') {\n    const options = parseMutationArguments(rest, 'uninstall');\n    const result = uninstallNasiko(options);\n    if (options.json) process.stdout.write(`${JSON.stringify(result, null, 2)}\\n`);\n    else if (result.dryRun) process.stdout.write(`Would uninstall Nasiko ${result.version} from ${result.destination}.\\n`);\n    else process.stdout.write(result.removed ? `Uninstalled Nasiko ${result.version}.\\n` : 'Nasiko was not installed.\\n');\n    return 0;\n  }\n  throw new Error(`Unsupported Nasiko command: ${command}`);\n}\n\nif (require.main === module) {\n  main().then(code => {\n    process.exitCode = code;\n  }).catch(error => {\n    process.stderr.write(`Error: ${String(error?.message || error).replace(/[\\r\\n]+/g, ' ')}\\n`);\n    process.exitCode = 1;\n  });\n}\n\nmodule.exports = { main, parseInstallArguments: parseMutationArguments, parseMutationArguments, parseStatusArguments, readStatus, resolveExecutable };\n","sourceCodeStart":116,"sourceCodeEnd":147,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/scripts/nasiko.js#L116-L147","documentation":"Raised in the nasiko CLI main dispatcher when the first positional command is not one of the supported subcommands (install, uninstall, status, help). Indicates the user invoked an unrecognized or misspelled Nasiko command.","triggerScenarios":"Triggered when nasiko.js rejects the current invocation: Unsupported Nasiko command: <value>","commonSituations":"Occurs while running scripts/nasiko.js with invalid arguments, missing flags, or a failing external dependency; the guard at scripts/nasiko.js:134 aborts the command with this message.","solutions":["Review the constraint in the error message, correct the input accordingly, and re-run."],"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-14T05:17:10.506Z"}