wet-aquaW
Refine3y ago
5 replies
wet-aqua

How to start servers for two Refine projects

I have two refine React projects and I'm trying to run both local servers concurrently.

But after running the first one then I try to run the second one, I get this error even after changing the port in the package.json scripts:

$ refine dev --port 5173

✓ refine devtools is running at port 5001

node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::5002
    at Server.setupListenHandle [as _listen2] (node:net:1872:16)
    ...
    ...
Emitted 'error' event on WebSocketServer instance at:
    ... {
  code: 'EADDRINUSE',
  errno: -48,
  syscall: 'listen',
  address: '::',
  port: 5002
}

Node.js v20.9.0
error Command failed with exit code 1.

The first server runs on port 5177 while I set the second to 5173
I'm using Yarn.
Was this page helpful?