Error with @cloudflare/next-on-pages
Hi guys, trying to deploy a site with next and running into the following error when running
npx @cloudflare/next-on-pages --experimental-minify
: 4 Replies
Are you on Windows per chance?
It's a known issue with Windows at this time: https://github.com/cloudflare/next-on-pages/issues/52
GitHub
Error: spawn npm ENOENT · Issue #52 · cloudflare/next-on-pages
When trying to run npx @cloudflare/next-on-pages I get an error C:\Users......\project>npx @cloudflare/next-on-pages @cloudflare/next-to-pages CLI ⚡️ ⚡️ Installing 'vercel'...
Oh, ok. Yes... I am.
So should I just push, and hope it doesn't happen on cloudflare?
You could try using
wsl
on windows to test
Or trying out that PR that's linked in that issue - note that I've not tested that so do so at your own risk