pnpm:  ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  not found: xxx

ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  not found: vite

pnpm version:

pnpm -v
6.24.1

Code to reproduce the issue:

mkdir test
cd test
pnpm init -y
pnpm install vite
pnpm vite

Expected behavior:

vite  dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

Actual behavior:

 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  not found: vite

Additional information:

node -v
v16.13.1
  • macOS

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 15
  • Comments: 27 (3 by maintainers)

Most upvoted comments

Same problem over here

Hello. I am having the same issue on the latest pnpm version 7.19.0 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL

just updated from 8.6.4 to 8.6.11 and this error is back. It runs the command but then says it’s not found and exists with exit code 1.

Same problem over here

because of pnpm version is lower than 7

You should update your “pnpm” version. it will work well

I was my bad, I used pnpm ci, assuming that the syntax is compatible. Using pnpm install works.

For me, I was running the pnpm command from another directory and passing the -c flag: pnpm -C PATH_TO_PROJECT prisma generate

I used exec instead and it worked

pnpm -C PATH_TO_PROJECT exec prisma generate