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.

Error: electron must be in the devDependencies

See original GitHub issue
  • Version:

Latest -> 8.6.0

  • Target:

Whatever

It happens as soon as I try to use the script node_modules/.bin/build. I can’t get rid of the following error:

screen shot 2016-11-15 at 13 39 22

I used to make it work but something is definitively broken now. Here is the current packages I use for now:

image

Thanks in advance for your help.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Dec 7, 2016

@seeekr Thanks for note. PR to correct warning text is welcome 😉

1reaction
seeekrcommented, Dec 7, 2016

Just wanna say that while the error message is technically correct, it is still confusing to (especially new) users of electron / electron-builder. Ideally the message would explicitly state that the electron dependency has been found inside of dependencies, instead of inside the devDependencies section. That would make the solution that much easier to find. Aside from that, thanks for making this software! Using it for the first time, enjoying it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Electron need to be saved as a developer ...
The fact that you require a package is irrelevant to whether it should be considered a dependency or a devDependency (in the npm...
Read more >
Building your First App | Electron
Then, install Electron into your app's devDependencies, which is the list of external development-only package dependencies not required in production.
Read more >
electron-packager - npm
Electron Packager. Package your Electron app into OS-specific bundles ( .app , .exe , etc.) via JavaScript or the command line.
Read more >
CLI - Electron Forge
To use the Forge CLI, install the @electron-forge/cli module into your project as a devDependency. If you're using the create-electron-app script, ...
Read more >
NPMmmm #1: Dev Dependencies, Dependencies - Medium
The difference between these two, is that devDependencies are modules which are only required during development, while dependencies are modules which are also ......
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