我不看这段YouTube视频了:
他做了很好的解释,但我在执行他所做的步骤时仍然收到不同的错误。
配置:“启动程序”
电子弹出错误:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Can't find package.json
at findPackageJson (/Users/user/dev/electron-app/node_modules/electron-prebuilt-compile/lib/es6-init.js:19:11)
at findPa
我正在尝试从Visual Studio代码中以调试模式运行应用程序。当我单击debug时,出现以下错误:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'C:\electron2\electron_app\--inspect-brk=15965'
at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
at Function.Module._r
我决定尝试学习电子,所以我克隆了,用npm i安装了依赖项并运行了npm start,但是由于这个错误,我需要帮助:
dyld: Symbol not found: ___NSArray0__
Referenced from: /Users/martin/Desktop/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/MacOS/../Frameworks/ReactiveObjC.framework/ReactiveObjC (which was built for Mac OS X 10.11)
当我安装electron quick start并运行 node_modules/.bin/electron --help 它告诉我: A path to an Electron app may be specified. It must be one of the following:
- index.js file.
- Folder containing a package.json file.
- Folder containing an index.js file.
- .html/.htm file.
- http://, https://, or file:
我最近升级到电子v1.3从0.37和get找不到模块‘远程’在渲染过程中。
一直在翻阅文档,但没能想出更多
这是我代码的一部分
渲染器JS文件
var remote = require('electron').remote;
const ipcRenderer = require('electron').ipcRenderer;
const session = remote.require('electron').session; //i'm trying to use the session module here
var app =
上周我遇到了以下问题--我不仅想把我的Ionic项目编译成android版本,还想把它编译成电子桌面应用。但是,每次当我部署打包的电子版时,我都会看到一个白屏。 如何重现问题: # i create simple angular app
ionic start example-app tabs --type angular
cd example-app
# i add @capacitor-community version of electron, since the original electron is deprecated
npm i @capacitor-community/e
当我用npm包" Electron -reload“编译我的Electron应用程序时。我收到一个错误。显然,Electron-reload使用chokidar来监视我的应用程序文件,因此当检测到文件更改时,它可以重新加载它。 我在编译我和webpack的电子主进程时遇到的错误: WARNING in ./node_modules/chokidar/lib/fsevents-handler.js
Module not found: Error: Can't resolve 'fsevents' in
'C:\[...]\node_modules\ch
我正在尝试建立我的电子应用程序。为此,我使用电子锻造。当我运行npm时,一切都很好,但是当我尝试用npm构建它时,我得到了以下错误行:
An unhandled rejection has occurred inside Forge:
[Error: ENOENT: no such file or directory, rename 'C:\Users\RENERE~1\AppData\Local\Temp\electron-packager\win32-x64\yt-downloader-win32-x64\electron.exe' -> 'C:\Users\
我正在尝试让我的电子应用程序在linux上运行。它在Windows上运行得很好。当我尝试'npm ci‘时,我得到以下错误: sh: 1: install-app-deps: not found 我在谷歌上没有找到任何有用的东西。我猜这可能是我的电子锻造谁可以成为这个麻烦的来源,但我不知道有什么转机。 我的Package.json: {
"name": "roseplayer",
"version": "0.0.2",
"description": "A webradio player
我一直试图在半径为"inner_radius“的球面上生成点,这样它们就均匀地展开了。该算法在半径为1的情况下按预期工作,但对于较大半径生成的点数小于预期。我在这里看过类似的问题,但它们似乎是为了在整个体积中产生点,而不仅仅是在球体表面。
import numpy as np
PI=np.pi
def spherical_to_cartesian(pol_ang,azim_ang,radius): #This function converts given spherical coordinates (theta, phi and radius) to cartesian coord
我试图将electron-usb库包含在我的电子项目中。
当我在index.html文件中使用require('electron-usb')执行npm start时,控制台中出现错误:
Uncaught Error: The specified procedure could not be found.
\\?\C:\Users\Me\Documents\GitHub\electron-quick-start-master\electron-quick-start-master\node_modules\electron-usb\build\Release\electron-v
当我将devtron引入电子时,程序报告了一个错误。 Uncaught Exception:
TypeError: electron.BrowserWindow.addDevToolsExtension is not a function
at Object.exports.install (/electron-quick-start/node_modules/devtron/api.js:13:35)
at App.<anonymous> (/electron-quick-start/main.js:6:24)
at App.emit (node:events:394:28)
我用tensorflow js构建了这个小应用程序。我可以使用npm start在Windows 10上完美地运行它,但是在成功运行npm run make之后,就不可能导入tensorflow。我得到以下错误:
Uncaught Error: The specified module could not be found. \\?\C:\Users\teste\AppData\Local\my-app\app-1.0.0\resources\app.asar.unpacked\node_modules\@tensorflow\tfjs-node\lib\napi-v5\tfjs_bindin
嗨,我正在尝试使用以下命令在我的windows系统中安装电子。
- npm install -g electron
- npm install electron
- npm install electron --save-dev
对于所有这些命令,我得到以下错误。
C:\Users\abc\Desktop\final\new>electron@
'electron@' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\abc\Des