-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: spawn npm ENOENT #52
Comments
I have already created a pr that can fix this issue, waiting for merge, ref #34 |
How can we fix this issue on windows? |
I can say that using the @LOLBRUHNICE changes from the quoted PR are working for me on Windows 11. |
FYI: I'm still getting same error. Looks like its not fixed. Using latest version. cc: @LOLBRUHNICE @dario-piotrowicz |
looks like you are using the pr I previously created, it was closed already, and my latest pr that was merged only solve spawn npx problem and only use npx as well |
I tried adding Which command I should be using to solve this error? |
Hi @surjithctly are you using if so can you delete all Are you on windows? |
Yes. I’m using PNPM. This issue occurs on cloudflare pages build (not local). I’m on Mac. |
@surjithctly I've just tried with a fresh new Next.js app (repo) I think there are some possible solutions:
Is any of this helpful? 🙂 |
Thanks @dario-piotrowicz adding But I guess this issue should be opened again, because this app should work without that as well. |
@surjithctly I'm not sure, I think Cloudflare pages doesn't support pnpm out of the box, as you can for example see So I think that currently if you tried using Also as you can see from the message, that step comes from the Vercel CLI itself (source) so I think that there isn't much we can do about it on our side anyways. @GregBrimble do you agree? |
In that case I would suggest a graceful exit with an error message instead of unhandled exception. Something like:
So people don't have to google a random error and they know exactly what to do. |
When trying to run
npx @cloudflare/next-on-pages
I get an errorI use
[email protected] and @18.12.0
[email protected]
The text was updated successfully, but these errors were encountered: