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:
I used to make it work but something is definitively broken now. Here is the current packages I use for now:
Thanks in advance for your help.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@seeekr Thanks for note. PR to correct warning text is welcome 😉
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 ofdependencies
, instead of inside thedevDependencies
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!