I’m getting some random errors when running:
forge run web
in my app.
$ forge run web
[ INFO] Forge tools running at version 3.3.11
[ INFO] Checking JavaScript files...
[ INFO] JavaScript check complete
[ INFO] Verifying your configuration settings...
[ INFO] Configuration settings check complete
[ INFO] { [Error: listen EADDRINUSE] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen' }
Any idea what might cause this error?
The error is cause by an application already listening on the port you’re trying to listen on.
You can use
ps aux | grep nodeto see if there are any node processes running.Then kill them using
kill pidwhere pid is the process idexample: