Skip to content

Homebrew installation breaks vp env due to bundled Node.js dependency #1572

@chungweileong94

Description

@chungweileong94

Describe 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

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Effort

    None yet

    Target date

    None yet

    Start date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions