I had this problem and I solved it by changing the port number in the settings.json file to an opened one.
To get to the settings.json file you just click CTRL+SHIFT+P, then type "settings", click the "Preferences: Open Settings (JSON)", then paste this inside the { }:
"liveServer.settings.port": 0
This will randomly pick an opened port each time. This is how my JSON file looks like:
{
"liveServer.settings.port": 0
}
If there are multiple lines in the JSON file, make sure each line is separated by a comma(,), like this:
{
"liveServer.settings.CustomBrowser": "microsoft-edge",
"liveServer.settings.port": 0
}
Answer from Elyasaf755 on Stack OverflowI had this problem and I solved it by changing the port number in the settings.json file to an opened one.
To get to the settings.json file you just click CTRL+SHIFT+P, then type "settings", click the "Preferences: Open Settings (JSON)", then paste this inside the { }:
"liveServer.settings.port": 0
This will randomly pick an opened port each time. This is how my JSON file looks like:
{
"liveServer.settings.port": 0
}
If there are multiple lines in the JSON file, make sure each line is separated by a comma(,), like this:
{
"liveServer.settings.CustomBrowser": "microsoft-edge",
"liveServer.settings.port": 0
}
Re-install the extension and restart your text editor to fix the issue.
Live Server - Mac Big Sur Issue
Visual Studio Code - open with live server - works and doesn't - HTML/CSS - Code with Mosh Forum
Open Live Server not working in MAC OS
M1 VS Code Live Server extension dont launch chrome - Stack Overflow
Videos
After updating to Mac os Big Sur my Live server has seemed to stop opening the HTML page in chrome.
It starts the port, and works fine If i type the exact address, but its not opening it directly..
I also noticed that there´s a new "Five Server" that apparently fixes this, but I've tried and still no luck with that extension either..
Tried reloading, reinstalling extensions VSC and restarting mac, but it keeps starting a port without opening the file in my browser.
Anyone know how to fix this?