Skip to content

fix(repo): patch npm-run-all to detect cjs npm exec paths#2810

Open
better-salmon wants to merge 1 commit into
solidjs:nextfrom
better-salmon:fix/npm-run-all
Open

fix(repo): patch npm-run-all to detect cjs npm exec paths#2810
better-salmon wants to merge 1 commit into
solidjs:nextfrom
better-salmon:fix/npm-run-all

Conversation

@better-salmon

@better-salmon better-salmon commented Jul 1, 2026

Copy link
Copy Markdown

Summary

pnpm managed by vite-plus causes this error:

ERROR: spawn /Users/name/.vite-plus/package_manager/pnpm/11.1.1/pnpm/bin/pnpm.cjs EACCES

In this particular setup pnpm 11 exposes npm_execpath as pnpm.cjs. But npm-run-all only treated .js/.mjs paths as Node shims. It tried to execute pnpm.cjs directly and hit EACCES, so the patch treats .cjs as a JS shim and runs it through node.

Updating pnpm to 11.9.0 did not help.

How did you test this change?

pnpm build now works. The patch is minimal and sufficient.

pnpm 11 exposes npm_execpath as pnpm.cjs, but npm-run-all only treated
.js/.mjs paths as Node shims. It tried to execute pnpm.cjs directly and
hit EACCES, so the patch treats .cjs as a JS shim and runs it through
node.
@changeset-bot

changeset-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 728ff8a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants