Title: node -p cuts off output when piped · Issue #61337 · nodejs/node · GitHub
Open Graph Title: node -p cuts off output when piped · Issue #61337 · nodejs/node
X Title: node -p cuts off output when piped · Issue #61337 · nodejs/node
Description: Version v24.12.0 Platform macOS 26.2 Subsystem No response What steps will reproduce the bug? seq -s ' ' 50000 >file node -p 'require("fs").readFileSync("file", "utf-8")' | cat How often does it reproduce? Is there a required condition? ...
Open Graph Description: Version v24.12.0 Platform macOS 26.2 Subsystem No response What steps will reproduce the bug? seq -s ' ' 50000 >file node -p 'require("fs").readFileSync("file", "utf-8")' | cat How often does it re...
X Description: Version v24.12.0 Platform macOS 26.2 Subsystem No response What steps will reproduce the bug? seq -s ' ' 50000 >file node -p 'require("fs").readFileSync("file", &...
Opengraph URL: https://github.com/nodejs/node/issues/61337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node -p cuts off output when piped","articleBody":"### Version\n\nv24.12.0\n\n### Platform\n\n```text\nmacOS 26.2\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n1. `seq -s ' ' 50000 \u003efile`\n2. `node -p 'require(\"fs\").readFileSync(\"file\", \"utf-8\")' | cat`\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\nPrints numbers up to 50000\n\n### What do you see instead?\n\nPrints numbers up to 12773\n\n### Additional information\n\nFor comparison, run `cat file | cat`, which works correctly.","author":{"url":"https://github.com/mohd-akram","@type":"Person","name":"mohd-akram"},"datePublished":"2026-01-10T21:25:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/61337/node/issues/61337"}
| 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:b5b0d4ef-39b4-f79b-103f-e8c5b431f0af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85D0:A4DA3:6B4A75:8DA345:6964860A |
| html-safe-nonce | 65a7d7a6a755c5204202247e8205a14b560af9354261ff88575e894b54b0ead4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUQwOkE0REEzOjZCNEE3NTo4REEzNDU6Njk2NDg2MEEiLCJ2aXNpdG9yX2lkIjoiNjEwMDUxNDgyNTM3MzUxNzMyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 69b06bee816715092a096bfcf05656295dfa060d98c93baa733e37f776ae72b5 |
| hovercard-subject-tag | issue:3800369961 |
| 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/61337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98ef333ac9179b54d066aa6c22fc5e255b8c66dc61f09057084d51498c93cdf6/nodejs/node/issues/61337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98ef333ac9179b54d066aa6c22fc5e255b8c66dc61f09057084d51498c93cdf6/nodejs/node/issues/61337 |
| og:image:alt | Version v24.12.0 Platform macOS 26.2 Subsystem No response What steps will reproduce the bug? seq -s ' ' 50000 >file node -p 'require("fs").readFileSync("file", "utf-8")' | cat How often does it re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mohd-akram |
| hostname | github.com |
| expected-hostname | github.com |
| None | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| 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 | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width