My Port is 8081, but when running using npm run dev, It is redirected to Due to this, I am facing issue pointing to other URLs. I want localhost to be 8081. Any idea?
31 Answer
it look like you have another process running on port 8081 to list process running on a specific port you can do
on windows
the command to identify the process running on a specific port is
netstat -aon | find /i "listening" you can kill the process with
taskkill /f /pid 1234 on linux
sudo lsof -n -i :8081 | grep LISTEN it will show you something with columns
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME you can kill the process with
kill -9 pid the second ones is the pid if you don't want this running process you can stop or kill it
5