"Wrangler does not exist" error when atttempting to deploy a pages project

I'm trying to get an pages project to have git integration however I can't get it to deploy the build outputs. The command for deploying is: wrangler pages deploy .vercel/output/static However when I retry the build it ends up giving me this error:
20:47:56.487 ⚡️ Build log saved to '.vercel/output/static/_worker.js/nop-build-log.json'
20:47:56.488 ⚡️ Generated '.vercel/output/static/_worker.js/index.js'.
20:47:56.488 ⚡️ Build completed in 0.08s
20:47:56.522 Success: Build command completed
20:47:56.704 Executing user deploy command: wrangler pages deploy .vercel/output/static
20:47:56.708 /bin/sh: 1: wrangler: not found
20:47:56.714 Failed: error occurred while running deploy command
20:47:56.487 ⚡️ Build log saved to '.vercel/output/static/_worker.js/nop-build-log.json'
20:47:56.488 ⚡️ Generated '.vercel/output/static/_worker.js/index.js'.
20:47:56.488 ⚡️ Build completed in 0.08s
20:47:56.522 Success: Build command completed
20:47:56.704 Executing user deploy command: wrangler pages deploy .vercel/output/static
20:47:56.708 /bin/sh: 1: wrangler: not found
20:47:56.714 Failed: error occurred while running deploy command
No description
3 Replies
Notenlish
NotenlishOP4d ago
I used to use this exact command locally and it would work just fine, however since I'm on windows(instead of linux) I can't run npx @cloudflare/next-on-pages to build it. That's why I am trying to get automatic builds on cloudflare
Paige
Paige4d ago
I might just be tripping, but shouldn't you just put npx in front of the deploy command?
Notenlish
NotenlishOP4d ago
oh it seems to be it, thanks

Did you find this page helpful?