René's URL Explorer Experiment


Title: process.cwd() fails in a not usefully descriptive way · Issue #57045 · nodejs/node · GitHub

Open Graph Title: process.cwd() fails in a not usefully descriptive way · Issue #57045 · nodejs/node

X Title: process.cwd() fails in a not usefully descriptive way · Issue #57045 · nodejs/node

Description: Version 22.14.0 Platform macOS Sequoia 15.1.1 Subsystem process What steps will reproduce the bug? ~/Code/platformatic via  v22.14.0 on ☁️ (us-east-1) ❯ mkdir lol ~/Code/platformatic via  v22.14.0 on ☁️ (us-east-1) ❯ cd lol Code/platfo...

Open Graph Description: Version 22.14.0 Platform macOS Sequoia 15.1.1 Subsystem process What steps will reproduce the bug? ~/Code/platformatic via  v22.14.0 on ☁️ (us-east-1) ❯ mkdir lol ~/Code/platformatic via  v22.14....

X Description: Version 22.14.0 Platform macOS Sequoia 15.1.1 Subsystem process What steps will reproduce the bug? ~/Code/platformatic via  v22.14.0 on ☁️ (us-east-1) ❯ mkdir lol ~/Code/platformatic via  v22.14....

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"process.cwd() fails in a not usefully descriptive way","articleBody":"### Version\n\n22.14.0\n\n### Platform\n\n```text\nmacOS Sequoia 15.1.1\n```\n\n### Subsystem\n\nprocess\n\n### What steps will reproduce the bug?\n\n```sh\n~/Code/platformatic via  v22.14.0 on ☁️  (us-east-1)\n❯ mkdir lol\n\n~/Code/platformatic via  v22.14.0 on ☁️  (us-east-1)\n❯ cd lol\n\nCode/platformatic/lol on ☁️  (us-east-1)\n❯ rm -rf ../lol\n\nCode/platformatic/lol on ☁️  (us-east-1)\n❯ node -p \"process.cwd()\"\nnode:internal/bootstrap/switches/does_own_process_state:142\n    cachedCwd = rawMethods.cwd();\n                           ^\n\nError: ENOENT: no such file or directory, uv_cwd\n    at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:142:28)\n    at [eval]:1:9\n    at runScriptInThisContext (node:internal/vm:209:10)\n    at node:internal/process/execution:449:12\n    at [eval]-wrapper:6:24\n    at runScriptInContext (node:internal/process/execution:447:60)\n    at evalFunction (node:internal/process/execution:87:30)\n    at evalScript (node:internal/process/execution:99:3)\n    at node:internal/main/eval_string:74:3 {\n  errno: -2,\n  code: 'ENOENT',\n  syscall: 'uv_cwd'\n}\n\nNode.js v22.14.0\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\nCould be made clearer that this is a failure of `process.cwd()` as the stack trace makes no mention of it. One _may_ make the connection by context, but not necessarily--it's non-obvious. If this was triggered by a `process.cwd()` deep in your code somewhere it could be quite confusing.\n\nIt'd also probably be useful to explain the possible scenario in which this could be triggered--the directory the process was working in was deleted somehow.\n\n### What do you see instead?\n\n```\nError: ENOENT: no such file or directory, uv_cwd\n    at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:142:28)\n    at [eval]:1:9\n    at runScriptInThisContext (node:internal/vm:209:10)\n    at node:internal/process/execution:449:12\n    at [eval]-wrapper:6:24\n    at runScriptInContext (node:internal/process/execution:447:60)\n    at evalFunction (node:internal/process/execution:87:30)\n    at evalScript (node:internal/process/execution:99:3)\n    at node:internal/main/eval_string:74:3\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/Qard","@type":"Person","name":"Qard"},"datePublished":"2025-02-14T15:28:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/57045/node/issues/57045"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b0e41213-a217-3c0d-5829-adb76f0e8752
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9BF2:2D9C9B:DCA8C:130680:6A4C1F63
html-safe-noncef1349fd174a1e313f1c31bd0603ba39f76f9fb35ddf3bdc3e8e55138553c51f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkYyOjJEOUM5QjpEQ0E4QzoxMzA2ODA6NkE0QzFGNjMiLCJ2aXNpdG9yX2lkIjoiNjI3NTUxOTg4NTI3OTMxMjM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd0f073f7c80c8b2574ba950702ba0fbc93caea79486e1d973f9a529832b6bd2a
hovercard-subject-tagissue:2854007962
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/57045/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9749f434d3d83fcba2bef7b6dadc3f8195af6de350b4224236400a4b118bf08c/nodejs/node/issues/57045
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9749f434d3d83fcba2bef7b6dadc3f8195af6de350b4224236400a4b118bf08c/nodejs/node/issues/57045
og:image:altVersion 22.14.0 Platform macOS Sequoia 15.1.1 Subsystem process What steps will reproduce the bug? ~/Code/platformatic via  v22.14.0 on ☁️ (us-east-1) ❯ mkdir lol ~/Code/platformatic via  v22.14....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameQard
hostnamegithub.com
expected-hostnamegithub.com
None1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511
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
releasef95fb36c72adc940ff991c03531114b2245658d0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/issues/57045#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F57045
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F57045
Sign up https://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/57045
Reloadhttps://github.com/nodejs/node/issues/57045
Reloadhttps://github.com/nodejs/node/issues/57045
Please reload this pagehttps://github.com/nodejs/node/issues/57045
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/issues/57045
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 968 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
#61164https://github.com/nodejs/node/pull/61164
process.cwd() fails in a not usefully descriptive wayhttps://github.com/nodejs/node/issues/57045#top
#61164https://github.com/nodejs/node/pull/61164
confirmed-bugIssues with confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
good first issueIssues that are suitable for first-time contributors.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
processIssues and PRs related to the process subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22process%22
https://github.com/Qard
Qardhttps://github.com/Qard
on Feb 14, 2025https://github.com/nodejs/node/issues/57045#issue-2854007962
confirmed-bugIssues with confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
good first issueIssues that are suitable for first-time contributors.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
processIssues and PRs related to the process subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22process%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.