casadoC
Convex Community2y ago
11 replies
casado

Wrong node version with local convex

I'm probably doing something stupid here, but I've been stuck on this for a couple of days.

When using AI town and running the local server, the convex backend is unable to connect. The server client side and server side errors are attached. The server error is:

2024-04-30T22:33:50.727635Z ERROR common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): Hit an error while pushing:
Wrong node version v21.7.3
 installed at node: Wrong node version v21.7.3
 installed at node


I've tried to use nvm us with 18,19 and 20 to see if that fixes it but I get the same error. The client side command is:

 just convex dev
cd /Users/martin/projects/local-ai-town/ai-town; npx convex "$@" --admin-key XXX --url "http://127.0.0.1:3210"

.

I've tried multiple fresh checkouts and it persists. Any thoughts?
Screenshot_2024-04-30_at_3.33.02_PM.png
Screenshot_2024-04-30_at_3.34.04_PM.png
Was this page helpful?