'npm says port is allready in even if you change the port

Recently I have started to use React Native and I didn't want to use Android Studio, so I manually installed every thing including hyper-v but after that I have a really strange problem if I put any port in .env file when I run npm start it saying that the port is in use!

And the other issue was when I was using JetBrains' products (like WebStorm) it won't start. I found this in log files :

java.net.BindException: Address already in use: bind

And the most strange thing was that the ports were not in use !

So after a week I found the solution .



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source