GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — trying to use `bun run` with bun installed by vp causes `vp: Recursion detected but no 'node' found in PATH` error · Issue #2157 · voidzero-dev/vite-plus

trying to use bun run with bun installed by vp causes vp: Recursion detected but no 'node' found in PATH error #2157

New issue
Copy link
New issue
Copy link
Closed
Bug
#2158
Closed
trying to use bun run with bun installed by vp causes vp: Recursion detected but no 'node' found in PATH error#2157
Bug
#2158
Copy link
Assignees
BlankParticle
Labels
bugSomething isn't workingcontribution welcome

Description

@BlankParticle
BlankParticle
opened on Jul 12, 2026
Issue body actions

Describe the bug

When trying to run bun run <script> with bun installed by vp i bun -g the following error occurs

vp: Recursion detected but no 'node' found in PATH (excluding shims)
Image

discord thread https://discord.com/channels/1475973262193459293/1525793153519714424

Reproduction

N/A

Steps to reproduce

vp i bun -g
# using hono repo as example
git clone https://github.com/honojs/hono.git
cd hono
bun run build

System Info

VITE+ - The Unified Toolchain for the Web

Environment:
  Version  25.9.0
  Source   VP_NODE_VERSION

Tool Paths:
  node  /Users/blank/.vite-plus/js_runtime/node/25.9.0/bin/node
  npm   /Users/blank/.vite-plus/js_runtime/node/25.9.0/bin/npm
  npx   /Users/blank/.vite-plus/js_runtime/node/25.9.0/bin/npx

Package Manager:
  Name          bun
  Version       1.2.20
  Source        packageManager
  Source Path   /Users/blank/Sources/hono/package.json
  Project Root  /Users/blank/Sources/hono
  Bin Path      /Users/blank/.vite-plus/package_manager/bun/1.2.20/bun/bin/bun



VITE+ - The Unified Toolchain for the Web

vp v0.2.4

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  bun v1.2.20
  Node.js          v25.9.0 (VP_NODE_VERSION)

Used Package Manager

bun

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.
Reacted by Liang and JongKyung Lee

Activity

  1. BlankParticle
    added
    pending triage
    on Jul 12, 2026
  2. BlankParticle
    added the
    Bug
    issue type on Jul 12, 2026
  3. liangmiQwQ
    added
    bugSomething isn't working
    and removed
    pending triage
    on Jul 12, 2026
  4. liangmiQwQ commented on Jul 12, 2026

    @liangmiQwQ
    liangmiQwQ
    on Jul 12, 2026
    Collaborator
    More actions

    I found the root cause, it is because in Vite+ has a VP_TOOL_RECURSION environment variable to prevent infinite loop. When this variable is set, we can only find Node.js binary from PATH.

    This env var is set after finding the correct packageManager, most package managers are JS based like yarn, npm, so it will prepend Node.js prefix into PATH. But Bun is native based, so no Node.js prefix is needed, and cause the problem.

    vite-plus/crates/vite_global_cli/src/shim/dispatch.rs

    Lines 1007 to 1009 in 5d61de0

    unsafe {
    std::env::set_var(RECURSION_ENV_VAR, "1");
    }

    @BlankParticle Thanks for your reporting, this is indeed a bug, are you willing to fix this bug?

    Reacted by JongKyung Lee
  5. liangmiQwQ
    added
    contribution welcome
    on Jul 12, 2026
  6. BlankParticle commented on Jul 12, 2026

    @BlankParticle
    BlankParticle
    on Jul 12, 2026
    ContributorAuthor
    More actions

    @liangmiQwQ thanks for confirming the bug, I will try to make a PR for the fix

    Reacted by Liang and JongKyung Lee
  7. liangmiQwQ
    assigned
    BlankParticle
    on Jul 12, 2026
  8. wan9chi
    closed this as completedin #2158on Jul 15, 2026
  9. liangmiQwQ
    added a commit that references this issue on Jul 15, 2026

    fix(cli): always append node path when spawning child pm process (voi…

    This issue will close once commit 7062bfd is merged into the 'main' branch.
    7062bfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @BlankParticle
    BlankParticle

Labels

bugSomething isn't workingcontribution welcome

Type

Bug

Fields

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.