question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron-builder: command not found

See original GitHub issue
  • Version: 20.19.2
  • Target: dmg, mac, win, linux

When I run this command electron-builder, it shows me this error.

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
miguelyoobic95commented, Aug 19, 2019

Hey guys, I have the module installed locally, in my node_modules, but somehow still get the above error.

This is in version 21.2.0 if electron builder. image

0reactions
gschafracommented, Feb 2, 2021

We’re also getting this error (Command "electron-builder" not found) when trying to run electron-builder from within a package.json script ("electron:win-build": "yarn build:prod && electron-builder build --win --ia32"). Installing electron-builder globally in our case is NOT an acceptable solution (using CI infrastrukture). In particular, the electron-builder docs recommends installing the package locally (using yarn, see https://www.electron.build/#installation), providing the “runner” in the node_modules/.bin directory, which is searched for by yarn (and npm?) automatically. In my case, this problem occured on a win agent (with yarn v1.22.5) and after upgrading electron-builder from v22.8.1 -> v22.9.1, which caused the electron-builder runner missing in the node_modules/.bin directory after a clean yarn install (whereby I cannot exclude that the runner existing until then was an artifact of a previous update/install). Any help on this is very much appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sh: electron-builder: command not found · Issue #5410
8.1 -> v22.9.1, which caused the electron-builder runner missing in the node_modules/.bin directory after a clean yarn install (whereby ...
Read more >
Build not found error when trying to create an installer for ...
I am trying to create a window installer for my electron app (so that it can be run on any windows ...
Read more >
electron-builder
A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out ......
Read more >
Command Line Interface (CLI)
Command Line Interface (CLI) ... Defaults to current working directory. ... Prepend npx to sample commands below if you run it from Terminal...
Read more >
Build Instructions (Windows) | Electron
node-gyp is not recognized as an internal or external command​ ... You may get this error if you are using Git Bash for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found