简体   繁体   English

电子锻造制造不会建造

[英]electron-forge make won't build

An unhandled rejection has occurred inside Forge: Forge 内部发生了未经处理的拒绝:

Error: Cannot make for rpm, the following external binaries need to be installed: rpmbuild
    at MakerRpm.ensureExternalBinariesExist (/home/chris/repos/dvdplayer/node_modules/@electron-forge/maker-base/src/Maker.ts:147:13)
    at _default (/usr/lib/node_modules/@electron-forge/cli/node_modules/@electron-forge/core/src/api/make.ts:135:11)
    at /usr/lib/node_modules/@electron-forge/cli/src/electron-forge-make.ts:44:5

Electron Forge was terminated. Location:
{}

I keep getting this error message when I run the command.运行命令时,我不断收到此错误消息。 Not sure what to do.不知道该怎么办。

我能够通过在终端中运行sudo apt install rpm来解决这个问题。

If you're running a Debian-derived Linux distro (eg. Ubuntu) you can run sudo apt install rpm to install rpm .如果您运行的是 Debian 派生的 Linux 发行版(例如 Ubuntu),您可以运行sudo apt install rpm来安装rpm Otherwise you must use your distribution's respective package manager to install rpm .否则,您必须使用您的发行版各自的包管理器来安装rpm

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用电子伪造打包应用程序时出现问题“无法解析'./→'” - Problem while packaging application with electron-forge “Can't resolve './→' ” 电子锻造:如何指定钩子? - electron-forge: how to specify hooks? 使用VSCode调试电子锻造应用程序 - Debug electron-forge app with VSCode Electron-forge npm run make“错误:找不到您的应用程序的主要入口点。” - Electron-forge npm run make "Error: The main entry point to your app was not found." ElectronJS npm 启动/bash:电子伪造:找不到命令 - ElectronJS npm start / bash: electron-forge: command not found Electron-forge - Forge 内部发生未处理的拒绝:[object Object] - Electron-forge - An unhandled rejection has occurred inside Forge: [object Object] “未捕获的 ReferenceError:require is not defined” 在 index.html 的电子锻造应用程序与反应模板 - “Uncaught ReferenceError: require is not defined” in index.html of electron-forge app with react template @electron-forge/plugin-webpack 中的 configuration.module.rules[2] 问题 - configuration.module.rules[2] Issue in @electron-forge/plugin-webpack 在 Electron Forge 配置中区分 make 和 package - differentiate between make and package in Electron Forge config 在电子锻造项目中安装“node-pty”后,缺少名为 pty.node.js 的文件。 如何在 Linux 中安装 node-pty - A file called pty.node.js is missing after installing "node-pty" in a electron-forge project. How can I install node-pty in Linux
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM