Title: child_process.execFileSync fails with EISDIR: illegal operation on a directory, lstat 'C:' on Windows in Node.js 22.20.0 · Issue #60435 · nodejs/node · GitHub
Open Graph Title: child_process.execFileSync fails with EISDIR: illegal operation on a directory, lstat 'C:' on Windows in Node.js 22.20.0 · Issue #60435 · nodejs/node
X Title: child_process.execFileSync fails with EISDIR: illegal operation on a directory, lstat 'C:' on Windows in Node.js 22.20.0 · Issue #60435 · nodejs/node
Description: Version v22.20.0 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem No response What steps will reproduce the bug? Node.js 22.20.0 may have introduced a regression in module resolution where child_process.execFileSync() fails when ...
Open Graph Description: Version v22.20.0 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem No response What steps will reproduce the bug? Node.js 22.20.0 may have introduced a regression in module resolution where ...
X Description: Version v22.20.0 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem No response What steps will reproduce the bug? Node.js 22.20.0 may have introduced a regression in module resolution where ...
Opengraph URL: https://github.com/nodejs/node/issues/60435
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"child_process.execFileSync fails with EISDIR: illegal operation on a directory, lstat 'C:' on Windows in Node.js 22.20.0","articleBody":"### Version\n\nv22.20.0\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.26200.0 x64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nNode.js 22.20.0 may have introduced a regression in module resolution where `child_process.execFileSync()` fails when executing binaries from certain Windows paths. The error occurs during internal module resolution and affects multiple path patterns.\n```\nError: EISDIR: illegal operation on a directory, lstat 'C:'\n at Object.realpathSync (node:fs:2744:25)\n at toRealPath (node:internal/modules/helpers:61:13)\n at Module._findPath (node:internal/modules/cjs/loader:746:22)\n at resolveMainPath (node:internal/modules/run_main:39:23)\n at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:163:20)\n at node:internal/main/run_main_module:36:49\n```\nAffected Path Patterns: \n- Very long paths (\u003e260 characters) with \\\\?\\ prefix\n\n### How often does it reproduce? Is there a required condition?\n\nReproducible every time with long paths with \\\\?\\ prefix on Windows \n\n### What is the expected behavior? Why is that the expected behavior?\n\nIn node 20.19.0 tests with long paths with \\\\?\\ prefix were passing successfully \n\n### What do you see instead?\n\n\n```\nError: EISDIR: illegal operation on a directory, lstat 'C:'\n at Object.realpathSync (node:fs:2744:25)\n at toRealPath (node:internal/modules/helpers:61:13)\n at Module._findPath (node:internal/modules/cjs/loader:746:22)\n at resolveMainPath (node:internal/modules/run_main:39:23)\n at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:163:20)\n at node:internal/main/run_main_module:36:49 {\n errno: -4068,\n code: 'EISDIR',\n syscall: 'lstat',\n path: 'C:'\n}\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/z3le","@type":"Person","name":"z3le"},"datePublished":"2025-10-27T14:33:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/60435/node/issues/60435"}
| 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:52b82fab-4cb5-caf1-d717-288df4150910 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BB2:2C07F4:10FBA01:17BEB4D:6A4DF74D |
| html-safe-nonce | ef2caab90a9fc1a59b557ff3631c56045880072615872d07262c26e14f888e68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkIyOjJDMDdGNDoxMEZCQTAxOjE3QkVCNEQ6NkE0REY3NEQiLCJ2aXNpdG9yX2lkIjoiODMxNzU1MTYxNjE2MTg3MTY5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e5f69e0e4e90f15b08192cc3f61d78b297119b23b73548ce53131c0ca018aaec |
| hovercard-subject-tag | issue:3557095096 |
| 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/60435/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f665be3f2f8d496a3578631b91aac1df66086c366d3a24e515d985e0872c1be/nodejs/node/issues/60435 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f665be3f2f8d496a3578631b91aac1df66086c366d3a24e515d985e0872c1be/nodejs/node/issues/60435 |
| og:image:alt | Version v22.20.0 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem No response What steps will reproduce the bug? Node.js 22.20.0 may have introduced a regression in module resolution where ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | z3le |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| 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 | f4bb89367ca678f057d79b1abc45d6675b1bd5b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width