electron-prebuilt renamed
See original GitHub issuehttp://electron.atom.io/blog/2016/08/16/npm-install-electron
I went ahead and updated my project and removed prebuilt.
My code is:
require('electron-reload')(__dirname, {
electron: require('electron')
});
but I get “Electron could not be found. No hard resets for you!” when I start my app…
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (7 by maintainers)
Top Results From Across the Web
electron-prebuilt has been renamed to electron #833 - GitHub
npm WARN deprecated electron-prebuilt@1.4.3: electron-prebuilt has been renamed to electron.
Read more >'electron-prebuilt has been renamed to just 'electron' (https://electron ...
'electron-prebuilt has been renamed to just 'electron' (https://electron.atom.io/blog/2016/08/16/npm” is published by Niek van de Pas.
Read more >electron-prebuilt - npm
This package has been deprecated. Author message: electron-prebuilt has been renamed to electron.
Read more >electron-prebuilt | Yarn - Package Manager
electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron.
Read more >Application Packaging | Electron
To distribute your app manually, you need to download Electron's prebuilt binaries. Next, the folder containing your app should be named app and...
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 Free
Top 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

Looks to be related to the way
requireworks, when using the new package namePreviously the
index.jsfile would be loaded returning the path to the executable, Instead theelectron.asaris loaded.I was able to work around this by providing a path to the index.js inside the module home instead.
@rachidsakara Thank you for comment. It helped me. But the only thing you need to fix are quotes. You should use ` not ’ for interpolation.
For instance the proper version of Option 3 is:
require('electron-reload')(__dirname, { electron: require(`${__dirname}/node_modules/electron`) })