npm开始不启动浏览器窗口 [英] npm start not launching browser window

查看:389
本文介绍了npm开始不启动浏览器窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新—由于其他人遇到了完全相同的问题,而恰好在我的同一时间必定已经陷入困境,这很奇怪.

Update — Figured out it thanks to somebody else experiencing the exact same problem right around the exact same time mine must have gone haywire, oddly enough.

几周来我没有从事我的Electron项目,与此同时,Electron突然停止了工作.即使我创建了一个新项目,它似乎也可以立即开始然后结束,而不会出现任何错误,警告或通知,也不需要启动Electron窗口.任务管理器确认Electron从未启动过.

I have not worked on my Electron projects in weeks, and in the meantime Electron suddenly stopped working. Even if I create a new project, it seems to start and then end immediately without any errors, warnings, or notifications, and without ever launching the Electron window. Task Manager confirms that Electron never even launches.

  • 电子快速入门无法正常工作.
  • 无法卸载并重新安装.
  • 但是,Electron Fiddle能够启动Electron.
  • Electron Quick Start does not work.
  • Uninstalling and reinstalling does not work.
  • However, Electron Fiddle is able to launch Electron.

任何人都不知道是什么原因造成的吗?

Anybody have any idea what could be causing this?

  • Windows 10 Home 1903内部版本10.0.18362、1909内部版本18363.535
  • 节点 12.8.1、12.13.0、12.14.0
  • NPM 6.13.4
  • 电子 7.1.4,7.1.7
  • Windows 10 Home 1903 build 10.0.18362, 1909 build 18363.535
  • Node 12.8.1, 12.13.0, 12.14.0
  • NPM 6.13.4
  • Electron 7.1.4, 7.1.7

我不确定这是否相关,但是如果我尝试运行npx electron,它会告诉我Electron failed to install correctly, please delete node_modules/electron and try installing again...?

I am not sure if this is relevant, but if I try to run npx electron it tells me Electron failed to install correctly, please delete node_modules/electron and try installing again...?

问题也已通过> 此处 > .

The issue has also been posted to the Electron GitHub page over here.

推荐答案

删除AppData/Local和AppData/Roaming下的电子,电子生成器和仍无法运行的任何应用程序中的缓存文件夹.

Delete the cache folders under your AppData/Local and AppData/Roaming for electron, electron-builder and any of your apps that is still not working.

这篇关于npm开始不启动浏览器窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆