ElectronJs快速入门无法启动? [英] ElectronJs Quick Start not starting?

查看:179
本文介绍了ElectronJs快速入门无法启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手,在Windows上开始使用Electronjs,在Linux上使用之前,还没有出现这样的问题。

I am new begin electronjs on windows, before I am used on linux not lived any problem like this.

我的问题是当我给CMD npm时开始,然后没有任何错误,但不要打开任何仅Windows终端,如下所示:

My problem is when I am give CMD npm start then no any errors but don't opening any windows only terminal looking like this:


C:\Users\ Ramazan\Desktop\electron-quick-start-master> npm start

C:\Users\Ramazan\Desktop\electron-quick-start-master>npm start

electron-quick-start@1.0.0 start C:\用户\Ramazan\Desktop\ electronic-quick-start-master

electron-quick-start@1.0.0 start C:\Users\Ramazan\Desktop\electron-quick-start-master

electron。

什么都没有,我找到了这个主题,但为什么npm不启动运行电子应用程序?和此ElectronJs:HellowWorld应用程序未启动但我的PC上已经安装了vc ++ 2015,但我尝试重新安装5次node_modules文件夹。

And nothing, I find this subject but Why doesn't npm start run electron app? and this ElectronJs: HellowWorld application is not starting But not working vc++ 2015 already installed on my pc and I tried reinstall 5 times node_modules folder.

如何解决此问题?

推荐答案

电子版本尚不支持当前版本的nodejs(v11),因此尝试使用此版本的用户很遗憾必须降级为LTS版本,它应该工作。我也花了将近一整天的时间来思考问题所在,但这是唯一对我有用的东西。

Electron doesn't support the current release of nodejs yet (v11), so people trying to use this unfortunately need to downgrade to the LTS version and it should work. I also spent almost a whole day wondering what's wrong, but this is the only thing that worked for me.

这篇关于ElectronJs快速入门无法启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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