简体   繁体   English

尝试打开我的网站表单 Visual Studio 时遇到实时服务器错误(附图片)

[英]Running into live server error while trying open my website form Visual Studio (picture attached)

I want to use live server so i can easily see the changes i make to my website however whenever i try to "go live" an error message pops up and no browser is opened with my website.我想使用实时服务器,这样我就可以很容易地看到我对我的网站所做的更改,但是每当我尝试“上线”时,都会弹出一条错误消息,并且我的网站没有打开浏览器。

I've attached an image of the error but so far have not been able to find any answers from people with the same problem.我附上了错误的图片,但到目前为止还没有从有同样问题的人那里找到任何答案。

I'm fairly new to this so i have no idea how to solve it other than trying to reinstall/restart a few times which didnt work.我对此很陌生,所以除了尝试重新安装/重新启动几次没有用外,我不知道如何解决它。 Any one know what might be causing this message?有谁知道可能导致此消息的原因? Image is the error prompt that pops up, saying application not found图片是弹出的错误提示,说application not found

图片是弹出的错误提示,说application not found

Try setting a browser in the Extension setting尝试在扩展设置中设置浏览器

用户界面设置

or by adding this setting to you settings.json file或通过将此设置添加到您的settings.json文件

"liveServer.settings.CustomBrowser": "chrome",

json设置

I managed to get it working by changing the firewall permissions as originally i did not allow liveserver to use private networks.我设法通过更改防火墙权限使其正常工作,因为最初我不允许 liveserver 使用专用网络。 I think that change is what fixed it.我认为改变是解决它的原因。 Thanks for the input guys!感谢您的输入!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 代码实时服务器扩展错误 - Visual studio code live server extension Error Visual Studio Code 上的 404 Live Server 错误 - 404 Live Server Error on Visual Studio Code 如何在运行实时服务器的情况下在 Visual Studio Code 中调试 JavaScript - How to Debug JavaScript in Visual Studio Code with live-server Running 为什么我的实时服务器不能在 visual studio code 中工作? - why doesn't my live server work in visual studio code? Visual Studio 代码:“使用实时服务器打开”和“使用默认浏览器打开”显示不同的 web 页面 - Visual Studio Code: “Open with Live Server” and “Open with Default Browser” showing different web page Visual Studio Code 中 Ritwick Dey 的 Live Server 扩展不会自动在新选项卡中打开网站 - Ritwick Dey's Live Server extension in Visual Studio Code not opening website in new tab automatically 使用 MacBook 时在 Visual Studio Code 中运行代码时遇到问题 - Trouble running code in Visual Studio Code while using my MacBook 使用实时服务器(Visual Studio 代码)打开时出现问题:err_internet_disconnected? - problem when open with live server (visual studio code) : err_internet_disconnected? 在 Visual Studio 代码中运行角度项目时出错 - Error while running angular project in Visual Studio code Visual Studio Code 失去与 Live Server 的连接 - Visual Studio Code losing connection to Live Server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM