Skip to content

bug: vp dlx not working inside package.json script command #975

@toddeTV

Description

@toddeTV

Describe the bug

Running the following directly works as intended:

  • vpx wrangler
  • vp dlx wrangler
  • vp exec wrangler

When extracting it into a package.json script it does not work anymore as intended.

Extracting as the following:

{
  "scripts": {
    "wrangler": "vp dlx wrangler"
  }
}

Results in:

$> vp run wrangler
VITE+ - The Unified Toolchain for the Web

$ vp dlx wrangler ⊘ cache disabled
error: Command 'dlx' not found

Using vpx wrangler or vp exec wrangler on the other hand works when inside a package.json script.

This leads to the following when wrapped inside a script command in package.json:

  • vpx wrangler
  • vp dlx wrangler
  • vp exec wrangler

Reproduction

https://github.com/voidzero-dev/vite-plus

Steps to reproduce

  1. Add "wrangler": "vp dlx wrangler" to the script commands inside the package.json file.
  2. Open the terminal and run vp run wrangler.
  3. Verify the error: Command 'dlx' not found output in the terminal.

System Info

$> vp env current
VITE+ - The Unified Toolchain for the Web

Environment:
  Version       24.14.0
  Source        engines.node

Tool Paths:
  node  /home/toddeTV/.vite-plus/js_runtime/node/24.14.0/bin/node
  npm   /home/toddeTV/.vite-plus/js_runtime/node/24.14.0/bin/npm
  npx   /home/toddeTV/.vite-plus/js_runtime/node/24.14.0/bin/npx



$> vp --version
VITE+ - The Unified Toolchain for the Web

vp v0.1.12

Local vite-plus:
  vite-plus  v0.1.12

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.17.0
  tsdown           v0.21.3

Environment:
  Package manager  pnpm v10.32.1
  Node.js          v24.x (engines.node)

Used Package Manager

pnpm

Logs

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions