0
我是Windows 10的新手。我正在为Windows构建Screencat应用程序。但是当我在控制台中运行“npm start”时,出现下面的弹出窗口,询问我想如何打开js文件。电子命令打开Windows 10中的文件分割菜单
是否可以在Windows 10中运行电子应用程序?
我是Windows 10的新手。我正在为Windows构建Screencat应用程序。但是当我在控制台中运行“npm start”时,出现下面的弹出窗口,询问我想如何打开js文件。电子命令打开Windows 10中的文件分割菜单
是否可以在Windows 10中运行电子应用程序?
对于Screencat npm start
运行命令electron electron.js
。看来你的操作系统没有识别electron
作为一个有效的命令。
您是否完全按照Windows的说明(https://github.com/maxogden/screencat#building-the-app)?特别是,安装C++并安装并运行electron-rebuild
。
您将需要安装Visual Studio C++,以便您可以构建本机模块。这里是cmd.exe的说明书
git clone https://github.com/maxogden/screencat.git cd screencat npm install npm install electron-rebuild .\node_modules\.bin\electron-rebuild.cmd npm start