Title: watch: NODE_OPTIONS filter misses underscore aliases like --watch_path, causing recursive spawning · Issue #66364 · nodejs/node · GitHub
Open Graph Title: watch: NODE_OPTIONS filter misses underscore aliases like --watch_path, causing recursive spawning · Issue #66364 · nodejs/node
X Title: watch: NODE_OPTIONS filter misses underscore aliases like --watch_path, causing recursive spawning · Issue #66364 · nodejs/node
Description: Version main Platform All Subsystem watch What steps will reproduce the bug? printf 'console.log("APP-EXECUTED");\n' > app.js NODE_OPTIONS='--watch_path=./' node app.js How often does it reproduce? Is there a required condition? Always W...
Open Graph Description: Version main Platform All Subsystem watch What steps will reproduce the bug? printf 'console.log("APP-EXECUTED");\n' > app.js NODE_OPTIONS='--watch_path=./' node app.js How often does it reproduce?...
X Description: Version main Platform All Subsystem watch What steps will reproduce the bug? printf 'console.log("APP-EXECUTED");\n' > app.js NODE_OPTIONS='--watch_path=./' node app.js...
Opengraph URL: https://github.com/nodejs/node/issues/66364
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"watch: NODE_OPTIONS filter misses underscore aliases like --watch_path, causing recursive spawning","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nAll\n```\n\n### Subsystem\n\nwatch\n\n### What steps will reproduce the bug?\n\n```console\nprintf 'console.log(\"APP-EXECUTED\");\\n' > app.js\n```\n\n```console\nNODE_OPTIONS='--watch_path=./' node app.js\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe child spawned by watch mode should have the watch flags stripped from `NODE_OPTIONS`, exactly as the dash spelling is. `--watch-path=./` prints `APP-EXECUTED` then `Completed running 'app.js'. Waiting for file changes...` and settles at one process.\n\nThe C++ layer treats `_` and `-` as equivalent in option names, so the two spellings must not differ in behavior.\n\n### What do you see instead?\n\nNo output at all; the application never executes. Each descendant re-enters watch mode and spawns another\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-09-28T02:07:35Z","url":"https://github.com/nodejs/node/issues/66364"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a398701a-1633-ea23-ead7-55d38b13b419 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B89C:125BB0:73FA04:966934:6AED2FF3 |
| html-safe-nonce | 60172fe94b732b55368f3c1ec589576f21e551cbd2cdbf6267901c7edde26527 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODlDOjEyNUJCMDo3M0ZBMDQ6OTY2OTM0OjZBRUQyRkYzIiwidmlzaXRvcl9pZCI6IjMwNzA5ODY1MDQxNjc1NjczNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e4f0dc043914c990bf56f4c864453496bf4f6e4da690d53478227aa1d62a82c |
| hovercard-subject-tag | issue:5608290323 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/66364/issue_layout |
| twitter:image | https://opengraph.githubassets.com/47fa8819b7d23eaea91ef258eafc8c891f7451a1327d9648b30c3bc42eb9e398/nodejs/node/issues/66364 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/47fa8819b7d23eaea91ef258eafc8c891f7451a1327d9648b30c3bc42eb9e398/nodejs/node/issues/66364 |
| og:image:alt | Version main Platform All Subsystem watch What steps will reproduce the bug? printf 'console.log("APP-EXECUTED");\n' > app.js NODE_OPTIONS='--watch_path=./' node app.js How often does it reproduce?... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trivikr |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width