简体   繁体   English

npm live-server此应用程序无法在您的PC上运行

[英]npm live-server this app can't run on your pc

I'm learning react, and Installed live-server via npm globally. 我正在学习反应,并通过npm在全球范围内安装了实时服务器。 Each time i try to serve the directory (live-server public), i get a windows error saying - "this app can't run on your pc" 每次尝试提供目录(实时服务器公共目录)时,我都会收到Windows错误消息:“此应用程序无法在您的PC上运行” 在此处输入图片说明

I am using windows 8.1 我正在使用Windows 8.1

I found the problem, the problem was that live-server was trying to render my app using a browser but the default chrome browser was having issues so it kept popping that error. 我发现了问题,问题是实时服务器试图使用浏览器呈现我的应用程序,但是默认的chrome浏览器出现了问题,因此它不断弹出该错误。

The solution was just to set Firefox as my default browser from the control panel. 解决方案只是从控制面板将Firefox设置为我的默认浏览器。 Control Panel>default programs 控制面板>默认程序

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM