René's URL Explorer Experiment


Title: docs: Document `npm_old_version` and `npm_new_version` environment variables by 36degrees · Pull Request #9385 · npm/cli · GitHub

Open Graph Title: docs: Document `npm_old_version` and `npm_new_version` environment variables by 36degrees · Pull Request #9385 · npm/cli

X Title: docs: Document `npm_old_version` and `npm_new_version` environment variables by 36degrees · Pull Request #9385 · npm/cli

Description: the package manager for JavaScript. Contribute to npm/cli development by creating an account on GitHub.

Open Graph Description: npm sets two additional environment variables npm_old_version and npm_new_version when running the preversion, version, postversion scripts, but these aren’t documented anywhere. Document the varia...

X Description: npm sets two additional environment variables npm_old_version and npm_new_version when running the preversion, version, postversion scripts, but these aren’t documented anywhere. Document the varia...

Opengraph URL: https://github.com/npm/cli/pull/9385

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:27c42c09-a585-456e-a689-336b8a5e21eb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8EA8:189645:149F36:1AABB9:6A4C1E9B
html-safe-nonce437662bb3e3ac680fc24ac497462aaf96d823afac8ef8c097956d88c3bd5c312
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUE4OjE4OTY0NToxNDlGMzY6MUFBQkI5OjZBNEMxRTlCIiwidmlzaXRvcl9pZCI6IjI1MjM5NDU1ODIwNDY0ODYxNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6124d7030ce53dda09b5eb357171aa78942de7747a9703b9eb7b6ef26a5a4198
hovercard-subject-tagpull_request:3721571198
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/npm/cli/9385/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c70bb94c11a469b106f6a899f1a381f14e6a1137059e031831ed493982b692e3/npm/cli/pull/9385
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c70bb94c11a469b106f6a899f1a381f14e6a1137059e031831ed493982b692e3/npm/cli/pull/9385
og:image:altnpm sets two additional environment variables npm_old_version and npm_new_version when running the preversion, version, postversion scripts, but these aren’t documented anywhere. Document the varia...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username36degrees
hostnamegithub.com
expected-hostnamegithub.com
None1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511
turbo-cache-controlno-cache
go-importgithub.com/npm/cli git https://github.com/npm/cli.git
octolytics-dimension-user_id6078720
octolytics-dimension-user_loginnpm
octolytics-dimension-repository_id139910229
octolytics-dimension-repository_nwonpm/cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id139910229
octolytics-dimension-repository_network_root_nwonpm/cli
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/npm/cli/pull/9385#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnpm%2Fcli%2Fpull%2F9385
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%2Fnpm%2Fcli%2Fpull%2F9385
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=npm%2Fcli
Reloadhttps://github.com/npm/cli/pull/9385
Reloadhttps://github.com/npm/cli/pull/9385
Reloadhttps://github.com/npm/cli/pull/9385
Please reload this pagehttps://github.com/npm/cli/pull/9385
npm https://github.com/npm
clihttps://github.com/npm/cli
Notifications https://github.com/login?return_to=%2Fnpm%2Fcli
Fork 4.5k https://github.com/login?return_to=%2Fnpm%2Fcli
Star 9.9k https://github.com/login?return_to=%2Fnpm%2Fcli
Code https://github.com/npm/cli
Issues 570 https://github.com/npm/cli/issues
Pull requests 67 https://github.com/npm/cli/pulls
Actions https://github.com/npm/cli/actions
Wiki https://github.com/npm/cli/wiki
Security and quality 5 https://github.com/npm/cli/security
Insights https://github.com/npm/cli/pulse
Code https://github.com/npm/cli
Issues https://github.com/npm/cli/issues
Pull requests https://github.com/npm/cli/pulls
Actions https://github.com/npm/cli/actions
Wiki https://github.com/npm/cli/wiki
Security and quality https://github.com/npm/cli/security
Insights https://github.com/npm/cli/pulse
owlstronauthttps://github.com/owlstronaut
npm:latesthttps://github.com/npm/cli/tree/latest
36degrees:document-npm-version-env-varshttps://github.com/36degrees/cli/tree/document-npm-version-env-vars
Conversationhttps://github.com/npm/cli/pull/9385
Commits2 (2)https://github.com/npm/cli/pull/9385/commits
Checkshttps://github.com/npm/cli/pull/9385/checks
Files changedhttps://github.com/npm/cli/pull/9385/files
docs: Document npm_old_version and npm_new_version environment variableshttps://github.com/npm/cli/pull/9385#top
owlstronauthttps://github.com/owlstronaut
npm:latesthttps://github.com/npm/cli/tree/latest
36degrees:document-npm-version-env-varshttps://github.com/36degrees/cli/tree/document-npm-version-env-vars
https://github.com/36degrees
36degreeshttps://github.com/36degrees
May 21, 2026https://github.com/npm/cli/pull/9385#issue-4492383643
Please reload this pagehttps://github.com/npm/cli/pull/9385
36degreeshttps://github.com/36degrees
May 20, 2026 18:31https://github.com/npm/cli/pull/9385#commits-pushed-fde2463
https://github.com/36degrees
Document npm version env vars in scripts docshttps://github.com/npm/cli/pull/9385/commits/fde2463fdf62618029c40bd7f78f4dcc59abf83c
fde2463https://github.com/npm/cli/pull/9385/commits/fde2463fdf62618029c40bd7f78f4dcc59abf83c
https://github.com/36degrees
Add reference to env vars in npm version docshttps://github.com/npm/cli/pull/9385/commits/fcdb5c90619a8d3985f8bd13361c7e287899226c
fcdb5c9https://github.com/npm/cli/pull/9385/commits/fcdb5c90619a8d3985f8bd13361c7e287899226c
https://github.com/36degrees
36degreeshttps://github.com/36degrees
code ownershttps://github.com/npm/cli/blob/4296f64beaa514581952a17ab82b6f1bcc0761e1/.github/CODEOWNERS#L3
May 21, 2026 06:47https://github.com/npm/cli/pull/9385#event-25791345530
https://github.com/NickColley
NickColleyhttps://github.com/NickColley
May 21, 2026 https://github.com/npm/cli/pull/9385#ref-issue-4405197963
Update the changelog as part of running npm version alphagov/govuk-frontend#7033 https://github.com/alphagov/govuk-frontend/issues/7033
https://github.com/owlstronaut
owlstronauthttps://github.com/owlstronaut
May 21, 2026 https://github.com/npm/cli/pull/9385#pullrequestreview-4338434994
View reviewed changes https://github.com/npm/cli/pull/9385/files/fcdb5c90619a8d3985f8bd13361c7e287899226c
https://github.com/owlstronaut
owlstronauthttps://github.com/owlstronaut
May 21, 2026https://github.com/npm/cli/pull/9385#event-25812545618
https://github.com/owlstronaut
owlstronauthttps://github.com/owlstronaut
d124c08https://github.com/npm/cli/commit/d124c0858da0b138cda2addcb0987b063ca86a47
May 21, 2026https://github.com/npm/cli/pull/9385#event-25812682577
Please reload this pagehttps://github.com/npm/cli/pull/9385
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 21, 2026 https://github.com/npm/cli/pull/9385#ref-pullrequest-4495999677
chore: release 12.0.0-pre.1 #9387 https://github.com/npm/cli/pull/9387
https://github.com/owlstronaut
owlstronauthttps://github.com/owlstronaut
backport:v11 https://github.com/npm/cli/issues?q=state%3Aopen%20label%3Abackport%3Av11
May 21, 2026https://github.com/npm/cli/pull/9385#event-25813997977
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 21, 2026 https://github.com/npm/cli/pull/9385#ref-pullrequest-4496202225
docs: Document npm_old_version and npm_new_version environment variables #9389 https://github.com/npm/cli/pull/9389
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 21, 2026https://github.com/npm/cli/pull/9385#issuecomment-4510300117
#9389https://github.com/npm/cli/pull/9389
Please reload this pagehttps://github.com/npm/cli/pull/9385
owlstronauthttps://github.com/owlstronaut
May 21, 2026 https://github.com/npm/cli/pull/9385#ref-commit-c5e9d73
https://github.com/apps/github-actions
https://github.com/36degrees
docs: Document npm_old_version and npm_new_version environment va…https://github.com/npm/cli/commit/c5e9d73b47056c5a901a7100919f4b29fcfb4d0f
c5e9d73https://github.com/npm/cli/commit/c5e9d73b47056c5a901a7100919f4b29fcfb4d0f
#9389https://github.com/npm/cli/pull/9389
#9385https://github.com/npm/cli/pull/9385
https://github.com/npm-cli-bot
npm-cli-bothttps://github.com/npm-cli-bot
Jun 23, 2026 https://github.com/npm/cli/pull/9385#ref-pullrequest-4728103372
deps: upgrade npm to 12.0.0-pre.1 nodejs/node#64096 https://github.com/nodejs/node/pull/64096
https://github.co/hiddenchars
https://github.com/npm/cli/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnpm%2Fcli%2Fpull%2F9385
https://github.com/owlstronaut
owlstronaut https://github.com/owlstronaut
https://github.com/npm/cli/pull/9385/files/fcdb5c90619a8d3985f8bd13361c7e287899226c
backport:v11 https://github.com/npm/cli/issues?q=state%3Aopen%20label%3Abackport%3Av11
Please reload this pagehttps://github.com/npm/cli/pull/9385
https://github.com/36degrees
https://github.com/owlstronaut
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.