René's URL Explorer Experiment


Title: `fs.rmSync` cannot remove read-only files on Windows when Node is built with `libc++` · Issue #64374 · nodejs/node · GitHub

Open Graph Title: `fs.rmSync` cannot remove read-only files on Windows when Node is built with `libc++` · Issue #64374 · nodejs/node

X Title: `fs.rmSync` cannot remove read-only files on Windows when Node is built with `libc++` · Issue #64374 · nodejs/node

Description: Version No response Platform Subsystem No response What steps will reproduce the bug? Use fs.rmSync on a read-only file on Windows. How often does it reproduce? Is there a required condition? Note, this issue appears to only exhibit in E...

Open Graph Description: Version No response Platform Subsystem No response What steps will reproduce the bug? Use fs.rmSync on a read-only file on Windows. How often does it reproduce? Is there a required condition? Note,...

X Description: Version No response Platform Subsystem No response What steps will reproduce the bug? Use fs.rmSync on a read-only file on Windows. How often does it reproduce? Is there a required condition? Note,...

Opengraph URL: https://github.com/nodejs/node/issues/64374

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`fs.rmSync` cannot remove read-only files on Windows when Node is built with `libc++`","articleBody":"### Version\n\n_No response_\n\n### Platform\n\n```text\n\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nUse `fs.rmSync` on a read-only file on Windows.\n\n### How often does it reproduce? Is there a required condition?\n\nNote, this issue appears to only exhibit in Electron, but that is due to our specific build configuration (more at the bottom of this issue).\n\nDownstream issue: https://github.com/electron/electron/issues/52253\n\n### What is the expected behavior? Why is that the expected behavior?\n\nRead-only files should be able to be removed with `rmSync`. This has worked previously.\n\n### What do you see instead?\n\nAs per downstream issue, the call fails with `EPERM`.\n\n### Additional information\n\nSince https://github.com/nodejs/node/pull/53617, the implementation for `fs.rmSync` has been written in C++ (specifically using `std::filesystem::remove`). However, depending on the C++ stdlib being used, this leads to divergent behavior.\n\n1. [The MSVC STL, used by official Node builds, specifically includes code to support the removal of read-only files with `filesystem::remove`.](https://github.com/microsoft/STL/pull/1559/changes)\n2. [`libc++`, currently, does not have such code and uses an API that does not support the removal of read-only files.](https://github.com/llvm/llvm-project/blob/2b26ee6e790574e05c3c9a562bc37897daf0f384/libcxx/src/filesystem/posix_compat.h#L238-L246)\n\nElectron uses `libc++` to build Node, so it encounters this divergent behavior. Should Node handle this inconsistency inside `RmSync`, or should `libc++` be aligned with the behavior of the MSVC STL?","author":{"url":"https://github.com/nmggithub","@type":"Person","name":"nmggithub"},"datePublished":"2026-07-08T21:10:31Z","url":"https://github.com/nodejs/node/issues/64374"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a798a07e-817a-cebf-205c-1104e08312b4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD6F8:1E2F2A:729C1F:9B7C33:6AED2AC4
html-safe-nonce3663c602a3ff0bf22621490d660e1cd8fbf27ee85e0edda6ca3c709b9a644e5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkY4OjFFMkYyQTo3MjlDMUY6OUI3QzMzOjZBRUQyQUM0IiwidmlzaXRvcl9pZCI6IjM2NTM2MDIzMzU0NDgxODE0NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac09da22bebd7194a9a817d4ba1a7932e932deea9f418b590b2f05f2f51d24b4c6
hovercard-subject-tagissue:4841123411
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/64374/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e91ea4a40d35d37c8c8c849df41f1cb6212ce1c9a0b9b99b41803b46260da89c/nodejs/node/issues/64374
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e91ea4a40d35d37c8c8c849df41f1cb6212ce1c9a0b9b99b41803b46260da89c/nodejs/node/issues/64374
og:image:altVersion No response Platform Subsystem No response What steps will reproduce the bug? Use fs.rmSync on a read-only file on Windows. How often does it reproduce? Is there a required condition? Note,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenmggithub
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64374#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64374
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64374
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/64374
Reloadhttps://github.com/nodejs/node/issues/64374
Reloadhttps://github.com/nodejs/node/issues/64374
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64374
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64374
#64453https://github.com/nodejs/node/pull/64453
fs.rmSync cannot remove read-only files on Windows when Node is built with libc++https://github.com/nodejs/node/issues/64374#top
#64453https://github.com/nodejs/node/pull/64453
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
windowsIssues and PRs related to the Windows platform.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22windows%22
https://github.com/nmggithub
nmggithubhttps://github.com/nmggithub
on Jul 8, 2026https://github.com/nodejs/node/issues/64374#issue-4841123411
electron/electron#52253https://github.com/electron/electron/issues/52253
#53617https://github.com/nodejs/node/pull/53617
The MSVC STL, used by official Node builds, specifically includes code to support the removal of read-only files with filesystem::remove.https://github.com/microsoft/STL/pull/1559/changes
libc++, currently, does not have such code and uses an API that does not support the removal of read-only files.https://github.com/llvm/llvm-project/blob/2b26ee6e790574e05c3c9a562bc37897daf0f384/libcxx/src/filesystem/posix_compat.h#L238-L246
daeyeonhttps://github.com/daeyeon
windowsIssues and PRs related to the Windows platform.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22windows%22
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
on Jul 12, 2026https://github.com/nodejs/node/issues/64374#event-27875738115
https://github.com/SparshGarg999
SparshGarg999https://github.com/SparshGarg999
on Jul 12, 2026https://github.com/nodejs/node/issues/64374#issuecomment-4951800952
#64453https://github.com/nodejs/node/pull/64453
nodejs-github-bothttps://github.com/nodejs-github-bot
on Sep 8, 2026https://github.com/nodejs/node/issues/64374#event-30729599425
fs: support removing read-only files in rmSync on Windowshttps://github.com/nodejs/node/commit/2987a5965f1f5c6d9f0023406389c57002e63629
2987a59https://github.com/nodejs/node/commit/2987a5965f1f5c6d9f0023406389c57002e63629
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#64453https://github.com/nodejs/node/pull/64453
on Sep 8, 2026https://github.com/nodejs/node/issues/64374#event-30729599511
aduh95https://github.com/aduh95
on Sep 16, 2026https://github.com/nodejs/node/issues/64374#event-31270391066
fs: support removing read-only files in rmSync on Windowshttps://github.com/nodejs/node/commit/2b502e0798fea2d259c846abd6165893f36f897a
2b502e0https://github.com/nodejs/node/commit/2b502e0798fea2d259c846abd6165893f36f897a
fs: support removing read-only files in rmSync on Windowshttps://github.com/nodejs/node/commit/cd1011458f10ae5fa69acb63b9e46cd1ae8f8db0
cd10114https://github.com/nodejs/node/commit/cd1011458f10ae5fa69acb63b9e46cd1ae8f8db0
Micka420-collabhttps://github.com/Micka420-collab
on Oct 3, 2026https://github.com/nodejs/node/issues/64374#event-32397322416
test: reproduce the Windows app's unerasable task folder and silent r…https://github.com/Micka420-collab/hive/commit/9df9f4d8092c564a9b57e33d1332f95292930dfb
9df9f4dhttps://github.com/Micka420-collab/hive/commit/9df9f4d8092c564a9b57e33d1332f95292930dfb
fix(node): erase task folders with fs.promises.rm; refusals carry the…https://github.com/Micka420-collab/hive/commit/51101cbcea1b8e164e6a46e10a3ca4a423c5962d
51101cbhttps://github.com/Micka420-collab/hive/commit/51101cbcea1b8e164e6a46e10a3ca4a423c5962d
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/64374
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64374
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
windowsIssues and PRs related to the Windows platform.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22windows%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.