EADDRINUSE Error

When you run your Medusa application you may run to an error similar to the following:

Terminal
code: 'EADDRINUSE',errno: -48,syscall: 'Listen',address: '::',port: 9000

This means that there's another process running at port 9000. You need to either:

  • Change the default port used by the Medusa application. You can do that by setting the PORT environment variable to a new port. When you do this, make sure to change the port used in other apps that interact with your Medusa application, such as in your admin or storefront.
  • Terminate other processes running on port 9000.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break