GeezerVison is showing github.com — Homebrew installation breaks vp env due to bundled Node.js dependency · Issue #1572 · voidzero-dev/vite-plus
Homebrew installation breaks vp env due to bundled Node.js dependency #1572DescriptionDescribe the bug
The current Homebrew installation for vite-plus does not work properly with vp env.
Problem
Installing vite-plus via Homebrew automatically installs node as a dependency. This appears to interfere with the vite-plus node shim resolution and causes vp env to behave incorrectly.
Expected Behavior
vp env should correctly resolve and use the vite-plus managed Node.js environment after installation via Homebrew.
Actual Behavior
The Homebrew-installed node dependency conflicts with the vite-plus shim setup, resulting in incorrect behavior when running: node
Reproduction
https://formulae.brew.sh/formula/vite-plus
Steps to reproduce
- Install vite-plus via homebrew,
brew install vite-plus
- Make sure
vp env is setting up
- Run
node --version or which node to verify if it's coming from vite-plus.
System Info
`vp env current`
VITE+ - The Unified Toolchain for the Web
Environment:
Version 24.15.0
Source lts
Tool Paths:
node /Users/chungwei/.vite-plus/js_runtime/node/24.15.0/bin/node
npm /Users/chungwei/.vite-plus/js_runtime/node/24.15.0/bin/npm
npx /Users/chungwei/.vite-plus/js_runtime/node/24.15.0/bin/npx
`vp --version`
VITE+ - The Unified Toolchain for the Web
vp v0.1.21
Local vite-plus:
vite-plus Not found
Tools:
vite Not found
rolldown Not found
vitest Not found
oxfmt Not found
oxlint Not found
oxlint-tsgolint Not found
tsdown Not found
Environment:
Package manager Not found
Node.js v24.15.0
`node --version`
v26.0.0
Used Package Manager
pnpm
Logs
Validations
Activityleohara commented on May 19, 2026 @fengmk2
I'd like to work on this.
It looks like vp env setup always points shims to ../current/bin/vp, but Homebrew installs vp elsewhere. I plan to make the shims fall back to the current vp binary when ../current/bin/vp doesn't exist, then add a regression test.
Does that scope sound right? Reacted by MK (fengmk2), JongKyung Lee and Chung Wei Leong leohara commented on May 19, 2026 @fengmk2 @chungweileong94
I opened a PR for this: #1631
While working on this, I noticed that package binary shims created by vp install -g also currently use the ../current/bin/vp Unix target. If maintainers prefer, I can either expand this PR to cover those shims as well, or open a separate follow-up PR for that change! added a commit that references this issue on May 24, 2026This issue will close once commit de5f8d9 is merged into the 'main' branch.de5f8d9 added a commit that references this issue on May 26, 2026This issue will close once commit 55fddda is merged into the 'main' branch.55fddda fengmk2 commented on Jun 1, 2026 @leohara Have you verified whether the Homebrew issue has been resolved after the release of version 0.1.23? leohara commented on Jun 1, 2026 @fengmk2
Yes, I verified the fix against v0.1.23, but not through brew install yet because Homebrew stable still installs vite-plus 0.1.22 on my machine.
I downloaded the v0.1.23 macOS arm64 release asset and tested it in a Homebrew-style layout where vp lives outside VP_HOME.
Verification summary:
vp --version
# vp v0.1.23
VP_HOME=/tmp/vp-home ./vp env setup
readlink /tmp/vp-home/bin/node
# /tmp/.../vp
readlink /tmp/vp-home/bin/vp
# /tmp/.../vp
With Homebrew's Node still present:
/opt/homebrew/bin/node --version
# v26.0.0
PATH="/tmp/vp-home/bin:/opt/homebrew/bin:$PATH" node --version
# v24.16.0
vp env which node
# /tmp/vp-home/js_runtime/node/24.16.0/bin/node
Once the Homebrew formula is bumped to v0.1.23, I can re-run the same check with brew install vite-plus directly.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|