This repository was archived by the owner on Dec 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
After stoping Ctrl+C, I got address already in use when restart #333
Copy link
Copy link
Open
Description
Issue description
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)
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
sophiabits, tsyvic and ypicard
Metadata
Metadata
Assignees
Labels
No labels