How to change project port, if already in used

Most of project used same port number and default port number is 3000. Sometime we have more than one project and want to run same time but port already in used error comes, How to fix it

PORT=3001 yarn start

In ubuntu/Linux machine asked you to run project in different port if port already in used

Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.
Yes0
No0
Harinder Singh

Harinder Singh

My name is Harinder Singh and I specialize in Software industry. I consider myself as a life learner. I love learning new concepts, embracing new ideas and reading and searching for innovation.