From 7fd1dc97c6a3a4bf8008e7bb390cfce7bcddda1c Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 11 Oct 2021 09:56:46 -0400 Subject: [PATCH] use 'npx kill-port' instead of killall (#22007) --- server.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.mjs b/server.mjs index e050d7a593..fac03c795a 100644 --- a/server.mjs +++ b/server.mjs @@ -41,7 +41,9 @@ async function checkPortAvailability() { const portInUse = await portUsed.check(port) if (portInUse) { console.log(`\n\n\nPort ${port} is not available. You may already have a server running.`) - console.log('Try running `killall node` to shut down all your running node processes.\n\n\n') + console.log( + `Try running \`npx kill-port ${port}\` to shut down all your running node processes.\n\n\n` + ) console.log('\x07') // system 'beep' sound process.exit(1) }