electron-forge make won't build
Asked Answered
H

2

36

An unhandled rejection has occurred inside 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.

Hungry answered 15/12, 2019 at 17:57 Comment(0)
K
98

I was able to fix this by running sudo apt install rpm in a terminal.

Kavita answered 2/1, 2020 at 23:43 Comment(3)
Same package name for Arch Linux through pacmanEdaphic
Why is this the most popular answer? Surely it would be better to simply not build the "rpm target" on a system that doesn't use RPM?Mindszenty
You may want to distribute the application.Curiosa
S
18

If you're running a Debian-derived Linux distro (eg. Ubuntu) you can run sudo apt install rpm to install rpm. Otherwise you must use your distribution's respective package manager to install rpm.

Shanty answered 8/1, 2021 at 14:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.