rebuild: Fails with latest version of electron-prebuilt

I’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

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

I have this error on the latest electron and electron-rebuild (macos sierra).

This is fixed in the latest version