ElectronJs 快速入门没有开始? [英] ElectronJs Quick Start not starting?

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

问题描述

我是windows上的新手,在我用在linux上之前没有遇到过这样的问题.

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

我的问题是当我给 CMD npm start 时没有任何错误,但没有打开任何只有 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:UsersRamazanDesktopelectron-quick-start-master>npm start

C:UsersRamazanDesktopelectron-quick-start-master>npm start

electron-quick-start@1.0.0 启动 C:UsersRamazanDesktopelectron-quick-start-master

electron-quick-start@1.0.0 start C:UsersRamazanDesktopelectron-quick-start-master

电子.

什么也没有,我找到了这个主题,但是 为什么 npm 不开始运行电子应用程序? 而这个 ElectronJs: HellowWorld 应用程序没有启动但是我的电脑上已经安装了 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.

我该如何解决这个问题?

How can I do for this problem?

推荐答案

Electron 还不支持当前版本的 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天全站免登陆