You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To start my project, I ran yarn start which executes ts-node-dev src/index.ts
Every time I stop the project Ctrl+C, when I run it back again, I mean yarn start I have this error
$ yarn start
yarn run v1.22.19
$ ts-node-dev --respawn --transpile-only --tree-kill src/index.ts
[INFO] 01:57:37 ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 4.9.4)
Starting ....
connected to localhost:4222
Error: listen EADDRINUSE: address already in use :::4000
at Server.setupListenHandle [as _listen2] (node:net:1330:16)
at listenInCluster (node:net:1378:12)
at Server.listen (node:net:1465:7)
at /Users/maelfosso/Documents/Projects/StockInos/rt/src/index.ts:29:10
at Generator.next (<anonymous>)
at fulfilled (/Users/maelfosso/Documents/Projects/StockInos/rt/src/index.ts:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[ERROR] 01:57:37 Error: listen EADDRINUSE: address already in use :::4000
^C
Context
OS version (is it docker or host?), ts-node-dev version
MacOs Venture 13.0.1
ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 4.9.4)
Bit late to the party, but this could very well be because the process didn't shut down properly.
If you are on Mac/Linux you can run the command ps aux | grep '<project-folder-name>' in your case it seems the folder name for the project is "StockInos" so you could do ps aux | grep 'StockInos'.
This will give you a list of processes running, with that folder name in the execution path, which usually matches the process that ts-node-dev is running.
Issue description
To start my project, I ran
yarn start
which executests-node-dev src/index.ts
Every time I stop the project
Ctrl+C
, when I run it back again, I meanyarn start
I have this errorContext
OS version (is it docker or host?), ts-node-dev version
MacOs Venture 13.0.1
ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 4.9.4)
Did you try to run with ts-node?
No
Did you try to run with
--files
option enabled?yes
Did you try to run with
--debug
option enabled?yes
Do you have a repro example (git repo) with simple steps to reproduce your problem?
No
The text was updated successfully, but these errors were encountered: