{"record":{"id":"5a08449ca73174d6","repo":"avajs/ava","slug":"could-not-parse-node-arguments-value-make-sur","errorCode":null,"errorMessage":"Could not parse `--node-arguments` value. Make sure all strings are closed and backslashes are used correctly.","messagePattern":"Could not parse `--node-arguments` value\\. Make sure all strings are closed and backslashes are used correctly\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/node-arguments.js","lineNumber":11,"sourceCode":"import process from 'node:process';\n\nimport arrgv from 'arrgv';\n\nexport default function normalizeNodeArguments(fromConf = [], fromArgv = '') {\n\tlet parsedArgv = [];\n\tif (fromArgv !== '') {\n\t\ttry {\n\t\t\tparsedArgv = arrgv(fromArgv);\n\t\t} catch {\n\t\t\tthrow new Error('Could not parse `--node-arguments` value. Make sure all strings are closed and backslashes are used correctly.');\n\t\t}\n\t}\n\n\treturn [...process.execArgv, ...fromConf, ...parsedArgv];\n}\n","sourceCodeStart":1,"sourceCodeEnd":17,"githubUrl":"https://github.com/avajs/ava/blob/bbfd946322fdeca2b547a691d947fb4e18c0c67f/lib/node-arguments.js#L1-L17","documentation":"normalizeNodeArguments guard: the arrgv parser threw while tokenizing the raw --node-arguments CLI string into argv entries, meaning the quoting is malformed (unclosed string, dangling backslash). The input at fault is the fromArgv string.","triggerScenarios":"Thrown at lib/node-arguments.js:11 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Quote the whole value and use inner quotes for args: --node-arguments=\"--loader ./loader.js\"","Close all string literals and remove trailing backslashes","Test the argument string by running it directly with node first","Prefer putting node args in the config's nodeArguments array instead of the CLI flag"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bbfd946322fdeca2b547a691d947fb4e18c0c67f","analyzedAt":"2026-09-02T01:24:43.834Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}