mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
When npm runs a workspace script, it only adds the workspace-local node_modules/.bin to PATH. packages/cli/node_modules/.bin doesn't exist because all packages are hoisted to the root. This caused `npx paseo` inside test files to miss the local binary and fall back to the npm registry, where a stale npx cache entry for @getpaseo/cli was missing bin/paseo — failing the chmod with ENOENT and exiting 254. 07-agent-stop was the first test in shard 2/3 to call `npx paseo` without spinning up a daemon first, so it reliably hit the broken cache path. Fix: prepend root/node_modules/.bin to PATH in the spawn env for each test subprocess.