-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Describe the bug
In the following scenario, the DX of running vp env use is suboptimal. As an end user, I would expect vp env use to revert back to the local or, if absent, the global default version of Node.
Reproduction
Command line issue, please reproduce locally
Steps to reproduce
In the root directory of an app using vp, run:
vp env pin ltsvp env use->Using Node.js v24.14.0 (resolved from .node-version)vp env use 22->Using Node.js v22.22.1 (resolved from 22)⚠️ vp env use->Using Node.js v22.22.1 (resolved from VITE_PLUS_NODE_VERSION)
In the final step, one would expect to see Using Node.js v24.14.0 (resolved from .node-version).
When running vp env current, that also shows it's using Node v22.22.1.
Ideally, VITE_PLUS_NODE_VERSION is unset when running vp env use without any provided version, so vp can use the local or global default again.
System Info
vp --version
VITE+ - The Unified Toolchain for the Web
vp v0.1.11
Local vite-plus:
vite-plus v0.1.11
Tools:
vite v8.0.0
rolldown v1.0.0-rc.9
vitest v4.1.0
oxfmt v0.40.0
oxlint v1.55.0
oxlint-tsgolint v0.16.0
tsdown v0.21.2Used Package Manager
pnpm
Logs
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels