Skip to content

docs(env): add a guide for replacing nvm or fnm - #3257

Merged
fengmk2 merged 7 commits into
mainfrom
feat/node-independent-env
Nov 19, 2026
Merged

fengmk2 merged 7 commits into
mainfrom
feat/node-independent-env

Conversation

@fengmk2

@fengmk2 fengmk2 commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Adds a "Replacing nvm or fnm" section to the environment guide, for users who want vp env to manage Node.js instead of nvm or fnm, as asked in #2607.

The section covers:

  • the nvm and fnm files that carry over (.nvmrc and .node-version), the .nvmrc values that Vite+ reads or ignores, and why no directory-change hook is needed
  • a table that maps nvm and fnm commands to vp env commands
  • migration steps, including removing the nvm or fnm shell lines and checking the result with vp env doctor node
  • older Node.js releases, such as 16 and 18, which vp env installs and runs without running Node.js itself

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://feat-node-independent-env-viteplus-dev.voidzero-docs.workers.dev (commit 00902e1)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c1067867-viteplus-dev.voidzero-docs.workers.dev 00902e1 2026-11-19T13:12:29.778Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://edf79b88-viteplus-dev.voidzero-docs.workers.dev cee8276 2026-11-19T08:20:42.433Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://108eee83-viteplus-dev.voidzero-docs.workers.dev 8d6907e 2026-11-18T16:07:21.032Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://7055cb28-viteplus-dev.voidzero-docs.workers.dev 33c9605 2026-11-18T15:00:59.332Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://93d454a9-viteplus-dev.voidzero-docs.workers.dev 78403c9 2026-11-18T12:26:10.052Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://47013179-viteplus-dev.voidzero-docs.workers.dev 495f342 2026-11-18T10:10:37.318Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://742bed21-viteplus-dev.voidzero-docs.workers.dev d4a7f4c 2026-11-18T08:46:53.535Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://587ce67b-viteplus-dev.voidzero-docs.workers.dev 6675697 2026-10-30T04:34:19.894Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://fad593e7-viteplus-dev.voidzero-docs.workers.dev 944a200 2026-10-29T01:06:07.340Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://686228ab-viteplus-dev.voidzero-docs.workers.dev 2465214 2026-10-28T14:41:47.226Z Visit the dashboard ↗

View all previews: View all previews ↗

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: cee8276

@fengmk2 fengmk2 changed the title fix(env): defer toolchain installation for native startup feat(env): defer toolchain installation for native startup Oct 28, 2026
@fengmk2 fengmk2 changed the title feat(env): defer toolchain installation for native startup feat(env): manage Node.js versions without running Node.js Oct 28, 2026
@fengmk2
fengmk2 force-pushed the feat/node-independent-env branch 2 times, most recently from 944a200 to 6675697 Compare October 30, 2026 04:33
@fengmk2
fengmk2 force-pushed the feat/node-independent-env branch 2 times, most recently from 495f342 to 78403c9 Compare November 18, 2026 12:25
fengmk2 and others added 2 commits November 18, 2026 22:50
Explain which nvm and fnm files and habits carry over, map their commands
to `vp env`, and list the migration steps. Note that `vp env` runs older
Node.js releases such as 16 and 18, and how to keep nvm or fnm with
`vp env off node`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Node.js 18 is the oldest release that `vp env` must support. Prepare
18.20.8 in CI on every platform, and check that `vp env install`,
`vp env exec`, and the node shim run it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fengmk2
fengmk2 force-pushed the feat/node-independent-env branch from 78403c9 to a73be82 Compare November 18, 2026 14:51
@fengmk2 fengmk2 changed the title feat(env): manage Node.js versions without running Node.js docs(env): add a guide for replacing nvm or fnm Nov 18, 2026
@fengmk2 fengmk2 self-assigned this Nov 18, 2026
fengmk2 and others added 2 commits November 18, 2026 22:59
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The section explains how to replace nvm and fnm, so it does not describe how to keep them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fengmk2
fengmk2 marked this pull request as ready for review November 19, 2026 07:17
@fengmk2
fengmk2 requested a review from cpojer November 19, 2026 07:17
Comment thread docs/guide/env.md Resolved
fengmk2 and others added 2 commits November 19, 2026 16:19
Co-authored-by: Christoph Nakazawa <xnakazawa@pm.me>
Signed-off-by: MK (fengmk2) <fengmk2@gmail.com>
@fengmk2
fengmk2 merged commit 1c60ac6 into main Nov 19, 2026
80 of 83 checks passed
@fengmk2
fengmk2 deleted the feat/node-independent-env branch November 19, 2026 14:05
@fengmk2 fengmk2 mentioned this pull request Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants