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?

Something is already running on port 3000. Probablyの解決方法

Posted at

問題

npm run start

でをいつも通りプロジェクトを立ち上げると以下のようなエラーが出てきた。

Something is already running on port 3000. Probably

どうやら、すでにポート 3000 で何かが実行されているみたいなので代わりのポート番号で実行しますか?的なエラーのようです。
npm run start で毎回出るのは嫌なので解決策を探しました。

解決方法

PORT 3000を利用しているプロセスを確認します。
出力結果のPID番号を覚えておきます。

lsof -i:3000

以下のコマンドで強制終了。

kill -9 PID番号

で解決しました。

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?