What to do when "Something is already running at port 8000" is displayed when the develop command of Gatsby is executed.

environment

-OS: macOS 10.15.5 ・ Gatsby: 2.24.14

Case study

When I run "gats by develop" casually, I get the following message:

Something is already running at port 8000
? Would you like to run the app at another port instead? › (Y/n)

If you select Y, it will start on port 8001. Select n to exit without starting the server.

Correspondence

Kill the process used on port 8000.

① First, check the port process

lsof -i :8000

The result is as follows.

COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
node    14778 saku   27u  IPv4 0xb6bc7a92d19432ab      0t0  TCP localhost:irdmi (LISTEN)

② Kill the process

kill -9 [PID numbers]

I hope I can get rid of this, but I still haven't.

Recommended Posts

What to do when "Something is already running at port 8000" is displayed when the develop command of Gatsby is executed.
What to do if (base) is displayed at the beginning of the Mac terminal
What to do if the progress bar is not displayed in tqdm of python
What to do when Japanese is not displayed on matplotlib
[AWS] What to do when the ping command causes a "timeout"
What to do when the value type is ambiguous in Python?
What to do when a part of the background image becomes transparent when the transparent image is combined with Pillow
What to do when the result downloaded via scrapy is in English
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
What to do when a warning message is displayed in pip list
[Python] What to do when PEP8 is violated in the process of importing from the directory added to sys.path
Example of what to do when the sample script does not work (OpenCV-Python)
What to do when PermissionError of tempfile.mkstemp occurs
What to do if abort is displayed when inputting camera video in OpenCV
What to do when is not in the sudoers file.This incident will be reported.
A command to check when something goes wrong when the server is not doing anything
curl: (60) What to do when Issuer certificate is invalid.
The sound of tic disorder at work is ... I managed to do it with the code
What to do if the image is not displayed using matplotlib etc. in the Docker container
What to do if the message "Not recognized as an internal or external command, operable program or batch file" is displayed when executing the conda command after installing Miniconda.
What to do when PyCharm font is strange or garbled
What do you do with configuration management of a server that has implemented Ansible but is already running? I'm hitting the problem
[For IT beginners] What to do when the rev command cannot be used with Git Bash
What to do when the jupyterlab extension settings are not reflected
What to do if Insecure Platform Warning appears when running Python
What to do if the inode is exhausted on EC2 Linux
What to do when you get "I can't see the site !!!!"
[Mac OS] What to do when Python is not installed as a framework. Is displayed when import matplotlib is performed.
How to write what to do when an application is first displayed in Qt for Python with Designer
What to do when Ubuntu crashes
What is the XX file at the root of a popular Python project?
What to do if the Pipenv environment is corrupted by updating Homebrew
[Docker] What to do when error Couldn't find the binary git appears
[Linux] Command to get a list of commands executed in the past
What to do if the yum command fails to set locale, defaulting to C
[Python] What to do when an error related to SSL authentication is returned
[Introduction to Python] What is the method of repeating with the continue statement?
bash: cannot create temp file for here-document: What to do when No space left on device is displayed