Title: `process.env` is missing environment variables with numeric names · Issue #60795 · nodejs/node · GitHub
Open Graph Title: `process.env` is missing environment variables with numeric names · Issue #60795 · nodejs/node
X Title: `process.env` is missing environment variables with numeric names · Issue #60795 · nodejs/node
Description: Version 25.2.1, 24.11.1 Platform Windows 11: Microsoft Windows NT 10.0.28000.0 x64 Ubuntu 24: Linux 6.6.87.1-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 17:08:54 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response...
Open Graph Description: Version 25.2.1, 24.11.1 Platform Windows 11: Microsoft Windows NT 10.0.28000.0 x64 Ubuntu 24: Linux 6.6.87.1-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 17:08:54 UTC 2025 x86_64 x86_6...
X Description: Version 25.2.1, 24.11.1 Platform Windows 11: Microsoft Windows NT 10.0.28000.0 x64 Ubuntu 24: Linux 6.6.87.1-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 17:08:54 UTC 2025 x86_64 x86_6...
Opengraph URL: https://github.com/nodejs/node/issues/60795
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`process.env` is missing environment variables with numeric names","articleBody":"### Version\n\n25.2.1, 24.11.1\n\n### Platform\n\n```text\nWindows 11: Microsoft Windows NT 10.0.28000.0 x64\nUbuntu 24: Linux 6.6.87.1-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 17:08:54 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n1. Set an environment variable with a numeric name.\n2. Run node.\n3. Check in `process.env` for that environment variable.\n\nFor example, in a Windows Command Prompt:\n```\necho console.log(process.env['386']);console.log(process.env['OTHER']); \u003e test.js\nset 386=1\nset OTHER=1\nnode test.js\n```\n\nProduces:\n```\nundefined\n1\n```\n\nI'm not 100% sure how to set such env vars in bash, but it does repro using PowerShell in Ubuntu:\n```\nPS\u003e $env:OTHER=1\nPS\u003e $env:386=1\nPS\u003e node test.js\nundefined\n1\n```\n\n### How often does it reproduce? Is there a required condition?\n\n100% repro.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe environment variable should be present in `process.env` - a numeric name is valid and can be set once in Node.\n\n### What do you see instead?\n\nThe environment variable is missing.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/dpaoliello","@type":"Person","name":"dpaoliello"},"datePublished":"2025-11-20T17:56:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/60795/node/issues/60795"}
| 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:fa8a52c5-3423-50b0-7732-e0da99913d6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E120:34E523:10D0FCA:16E1ACC:6A4D6820 |
| html-safe-nonce | c51a6dc323e5b5484db48a9509474acf2c6ef043d9e0bbd487c4cff0cf9a026d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTIwOjM0RTUyMzoxMEQwRkNBOjE2RTFBQ0M6NkE0RDY4MjAiLCJ2aXNpdG9yX2lkIjoiODMzOTUxMzEwNTY2NzQ2MTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fe535672c9d8fe2aaca81ab6a61cf52ce8c61aed73de99c9d5898f09051fbaaf |
| hovercard-subject-tag | issue:3648417796 |
| 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/60795/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80f0587129eaca0bee82a8437885c70170f02525848bb1c134c0bc2c46489ce2/nodejs/node/issues/60795 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80f0587129eaca0bee82a8437885c70170f02525848bb1c134c0bc2c46489ce2/nodejs/node/issues/60795 |
| og:image:alt | Version 25.2.1, 24.11.1 Platform Windows 11: Microsoft Windows NT 10.0.28000.0 x64 Ubuntu 24: Linux 6.6.87.1-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 17:08:54 UTC 2025 x86_64 x86_6... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dpaoliello |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7db3950e3f59095e20a9789440c3dd554efc62d434882ead06ae05b5815605b9 |
| 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 | cd8f6a71db61d6012a0cbb134be844fdbe9b8a45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width