0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

裏で開発環境が立ち上がっているのを止める

0
Posted at

はじめに

Reactでnpm run devしたら既にデフォルトのポートが使われていた。macを使っています。

問題

Port 5173 is in use, trying another one...

解決方法

以下のコマンドを打って、裏で動いているプロセスのプロセスID(5桁の数字)を調べる。

lsof -i -n -P

以下のコマンドでプロセスを終了する

kill -9 <プロセスID>

おわりに

たまにctrl + Cで止めても動いてることあったけど止め方わからずAIに聞いて止めてもらってました。これからは自分で止めます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?