Fails with latest version of electron-prebuilt
See original GitHub issueI’ve just been running some test builds with an app I’ve been working on and everything was working fine until electron-prebuilt
got updated to 1.1.1
.
I tried rolling back to version 1.1.0
and it all worked fine again.
Here is the output from the build that failed:
Canary file 'common.gypi' doesn't exist
Error: Canary file 'common.gypi' doesn't exist
at checkForInstalledHeaders$ (C:\Development\AppName\node_modules\electron-rebuild\lib\main.js:62:15)
at tryCatch (C:\Development\AppName\node_modules\babel-runtime\regenerator\runtime.js:72:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Development\AppName\node_modules\babel-runtime\regenerator\runtime.js:334:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Development\AppName\node_modules\babel-runtime\regenerator\runtime.js:105:21)
at tryCatch (C:\Development\AppName\node_modules\babel-runtime\regenerator\runtime.js:72:40)
at invoke (C:\Development\AppName\node_modules\babel-runtime\regenerator\runtime.js:146:20)
at C:\Development\AppName\node_modules\babel-runtime\regenerator\runtime.js:191:11
at Promise.exports.(anonymous function).target.(anonymous function).function.target.(anonymous function).F (C:\Development\AppName\node_modules\core-js\library\modules\$.export.js:30:36)
at callInvokeWithMethodAndArg (C:\Development\AppName\node_modules\babel-runtime\regenerator\runtime.js:190:16)
at AsyncIterator.enqueue (C:\Development\AppName\node_modules\babel-runtime\regenerator\runtime.js:211:37)
npm WARN optional Skipping failed optional dependency //osx-mouse:
npm WARN notsup Not compatible with your operating system or architecture: osx-mouse@1.2.1
npm WARN optional Skipping failed optional dependency /electron-installer-dmg/appdmg:
npm WARN notsup Not compatible with your operating system or architecture: appdmg@0.3.10
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! AppName@0.9.0 postinstall: `electron-rebuild.cmd`
npm ERR! Exit status 4294967295
npm ERR!
npm ERR! Failed at the AppName@0.9.0 postinstall script 'electron-rebuild.cmd'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the AppName package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron-rebuild.cmd
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs AppName
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls AppName
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Development\AppName\npm-debug.log
This is on Windows 10, Node 6.2.0 and npm 3.8.9
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (3 by maintainers)
Top Results From Across the Web
Fails with latest version of electron-prebuilt · Issue #68 - GitHub
I have this error on the latest electron and electron-rebuild (macos sierra). node -v = v6.9.1 node-gyp = v3.4.0 electron -v = v1....
Read more >node.js - electron-forge start failed due to failure on installing ...
I want to start creating app using electron-forge but it cannot Install NPM Dependencies. Here is the error I am getting after this...
Read more >Advanced Installation Instructions | Electron
To install prebuilt Electron binaries, use npm. The preferred method is to install Electron as a development dependency in your app:
Read more >[Ask] How do you compile for 32bit systems from a 64bit OS
Error: Failed with exit code : 1 Output: Attempting to build package ... version of "electron-prebuilt-compile" not a range (got "^8.2.0").
Read more >electron-prebuilt-compile - npm
electron-prebuilt that automatically understands Babel + React + LESS. Latest version: 8.2.0, last published: 3 years ago.
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
I have this error on the latest electron and electron-rebuild (macos sierra).
This is fixed in the latest version