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 5 years ago
- Reactions: 18
- Comments: 33 (3 by maintainers)
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
You should update your “pnpm” version. it will work well
Hey is there any solution for this to run? I’m facing the same issue.
pnpm build ‘build’ is not recognized as an internal or external command, operable program or batch file. ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command “build” not found
because of pnpm version is lower than 7
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
Same problem: https://github.com/The-Creative-Programming-Group/Weather-App
I was my bad, I used
pnpm ci, assuming that the syntax is compatible. Usingpnpm installworks.I faced same issue This is my project structure:
Initially, I ran the
pnpm devcommand from ~MAIN_PROJECT/ and encountered the errorERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "dev" not found.After that, I changed to ~MAIN_PROJECT/FE_FOLDER and ran pnpm dev again, and it succeeded.I’m not sure if others have faced the same idiot error as I did, but please double-check the folder you’re in when running the command.
For me, I was running the pnpm command from another directory and passing the
-cflag:pnpm -C PATH_TO_PROJECT prisma generateI used
execinstead and it workedpnpm -C PATH_TO_PROJECT exec prisma generateIf you are running bash scripts locally or in CI / CD processes, you may encounter this error. If that is the case, consider the following.
In both cases, make sure your scripts have: