Title: `node --run` should find a way to avoid keeping a shell around and properly forward signals · Issue #65712 · nodejs/node · GitHub
Open Graph Title: `node --run` should find a way to avoid keeping a shell around and properly forward signals · Issue #65712 · nodejs/node
X Title: `node --run` should find a way to avoid keeping a shell around and properly forward signals · Issue #65712 · nodejs/node
Description: What is the problem this feature will solve? Node has gained node --run as a way to directly execute a package.json script, but this has a glaring subtle limitation currently that has bitten me and likely others, and is also recurring in...
Open Graph Description: What is the problem this feature will solve? Node has gained node --run as a way to directly execute a package.json script, but this has a glaring subtle limitation currently that has bitten me and...
X Description: What is the problem this feature will solve? Node has gained node --run as a way to directly execute a package.json script, but this has a glaring subtle limitation currently that has bitten me and...
Opengraph URL: https://github.com/nodejs/node/issues/65712
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`node --run` should find a way to avoid keeping a shell around and properly forward signals","articleBody":"### What is the problem this feature will solve?\n\nNode has gained `node --run` as a way to directly execute a package.json script, but this has a glaring subtle limitation currently that has bitten me and likely others, and is also recurring in the existing package managers: It doesn't forward signals properly to the subprocess, and the shell in the middle can even end up swallowing those signals and lingering when invoked `node --run` is invoked as PID 1 in Docker.\n\n### What is the feature you are proposing to solve the problem?\n\nIt would be much nicer to have a variant that can function identically to just a direct `node script.js` invocation, but with the arguments and command line in the `package.json` for DRY reasons. This can be problematic though, as package.json scripts are currently arbitrary shell scripts, and Node.js likely just uses `sh` to execute them rather then any JS shell-emulator (Pnpm, Yarn), which can limit it's ability to directly `exec` the final ran command so the shell in the middle doesn't swallow signals.\n\n### What alternatives have you considered?\n\nDon't use `node --run` or the package mangers, just direct `node script.js` duplicating the start command.","author":{"url":"https://github.com/segevfiner","@type":"Person","name":"segevfiner"},"datePublished":"2026-09-01T16:47:49Z","url":"https://github.com/nodejs/node/issues/65712"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:dbc59d67-33ab-be97-a021-24e27d1a4e8f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 887C:20DDCE:29F88D:388987:6B061659 |
| html-safe-nonce | 36b76847ccf34c7041383959410dcaa444e1450f9b7adb1f0bd1ba5ab3c627f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODdDOjIwRERDRToyOUY4OEQ6Mzg4OTg3OjZCMDYxNjU5IiwidmlzaXRvcl9pZCI6IjM4ODI2ODY2MjI0NzkwMjk4NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 88137c94ce9582c9760b2865f9accbbbdeaf4115a62adffeec4b1cbf605c3691 |
| hovercard-subject-tag | issue:5314473863 |
| 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/65712/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cafe1221abb097d49b7a86fa5286d27f1a3e63a638680ae390fc8a5d1f9f3cd6/nodejs/node/issues/65712 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cafe1221abb097d49b7a86fa5286d27f1a3e63a638680ae390fc8a5d1f9f3cd6/nodejs/node/issues/65712 |
| og:image:alt | What is the problem this feature will solve? Node has gained node --run as a way to directly execute a package.json script, but this has a glaring subtle limitation currently that has bitten me and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | segevfiner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| 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 | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width