EzraEnE
Convex Community2mo ago
2 replies
EzraEn

Local Deployment Fails on Windows Due to Malformed Path

Hi Convex team,

I'm having trouble running a local deployment on Windows. When I run:

bun dev:backend --once

I get the following error:

✖ Error: Unable to start push to http://127.0.0.1:3210
✖ Error fetching POST  http://127.0.0.1:3210/api/deploy2/start_push 400 Bad Request: InvalidExternalModules: Hit an error while pushing:
Loading the pushed modules encountered the following error:
ENOENT: no such file or directory, mkdir 'C:\C:\Users\admin\.convex\anonymous-convex-backend-state\anonymous-nh4\convex_local_storage\modules'


As you can see, the path is malformed (C:\C:\...). Here’s what I’ve tried so far:

- Running as administrator.
- Deleting the .convex directory in my user folder to reset local state.
- Ensuring there are no malformed paths or double drive letters in my .env.local.
- Checking for any custom CONVEX_TMPDIR or related environment variables.
- Attempting to set CONVEX_TMPDIR to a directory on the same drive as my project, using PowerShell:

  $env:CONVEX_TMPDIR="C:\Users\admin\convex_tmp"
  bun dev:backend --once


Despite these steps, the error persists and the deployment crashes. I’ve also reviewed the support-communitycross-device link not permitted, and it seems there may be a bug in the Convex CLI’s handling of paths or the CONVEX_TMPDIR variable on Windows.

Is there anything else I can try, or is this a known issue with the CLI on Windows? Any help would be appreciated!
Was this page helpful?