TL;DR When attempting to pass arguments to node using `-- node [nodeFlags]` a `Cannot find module` error is thrown. 0x Version: 5.8.0 Node Version: Windows 10 - 20.5.1 Command: `0x -- node .\index.js` Intended use case: I want to use `--enable-source-maps` however it fails to run even when no arguments are provided. ```js // index.js console.log("Hello, World!"); ``` ```ps PS F:\Temp$ node .\index.js Hello, World! PS F:\Temp$ 0x .\index.js ProfilingHello, World! Flamegraph generated in file://F:\Temp\24196.0x\flamegraph.html PS F:\Temp$ 0x -- node .\index.js Profilingnode:internal/modules/cjs/loader:1051 throw err; ^ Error: Cannot find module 'F:\Temp\node' at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15) at Module._load (node:internal/modules/cjs/loader:901:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v20.5.1 Target subprocess error, code: 1 Flamegraph generated in file://F:\Temp\23356.0x\flamegraph.html ``` ``` (All latest as of 2024.11.29) 0x 5.8.0 โโโ ajv 8.17.1 โโโ browserify 17.0.1 โโโ concat-stream 2.0.0 โโโ d3-fg 6.14.0 โโโ debounce 1.2.1 โโโ debug 4.3.5 โโโ end-of-stream 1.4.4 โโโ env-string 1.0.1 โโโ escape-string-regexp 4.0.0 โโโ execspawn 1.0.1 โโโ fs-extra 10.1.0 โโโ has-unicode 2.0.1 โโโ hsl-to-rgb-for-reals 1.1.1 โโโ jsonstream2 3.0.0 โโโ make-dir 3.1.0 โโโ minimist 1.2.8 โโโ morphdom 2.7.4 โโโ nanohtml 1.10.0 โโโ on-net-listen 1.1.2 โโโ opn 5.5.0 โโโ pump 3.0.0 โโโ pumpify 2.0.1 โโโ semver 7.6.0 โโโ single-line-log 1.1.2 โโโ split2 4.2.0 โโโ tachyons 4.12.0 โโโ through2 4.0.2 โโโ which 2.0.2 ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by Cooldude2606 and has received 2 comments.