Skip to content

Commit 7fd1dc9

Browse files
authored
use 'npx kill-port' instead of killall (github#22007)
1 parent 30d1492 commit 7fd1dc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ async function checkPortAvailability() {
4141
const portInUse = await portUsed.check(port)
4242
if (portInUse) {
4343
console.log(`\n\n\nPort ${port} is not available. You may already have a server running.`)
44-
console.log('Try running `killall node` to shut down all your running node processes.\n\n\n')
44+
console.log(
45+
`Try running \`npx kill-port ${port}\` to shut down all your running node processes.\n\n\n`
46+
)
4547
console.log('\x07') // system 'beep' sound
4648
process.exit(1)
4749
}

0 commit comments

Comments
 (0)