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.

Canary file 'common.gypi' doesn't exist

See original GitHub issue

Getting this error trying to rebuild my dependencies (npm install && electron-rebuild with “./node_modules/.bin” in path):

Error: Canary file 'common.gypi' doesn't exist
    at checkForInstalledHeaders$ (/Users/natevw/…/my-app/node_modules/electron-rebuild/lib/main.js:58:15)
    at tryCatch (/Users/natevw/Desktop/…/my-app/node_modules/electron-rebuild/node_modules/babel-core/node_modules/regenerator/runtime.js:61:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/natevw/…/my-app/node_modules/electron-rebuild/node_modules/babel-core/node_modules/regenerator/runtime.js:305:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/natevw/…/my-app/node_modules/electron-rebuild/node_modules/babel-core/node_modules/regenerator/runtime.js:94:21)
    at invoke (/Users/natevw/…/my-app/node_modules/node_modules/electron-rebuild/node_modules/babel-core/node_modules/regenerator/runtime.js:132:37)
    at /Users/natevw/…/my-app/node_modules/node_modules/electron-rebuild/node_modules/babel-core/node_modules/regenerator/runtime.js:166:18
    at run (/Users/natevw/…/my-app/node_modules/node_modules/electron-rebuild/node_modules/babel-core/node_modules/core-js/modules/es6.promise.js:89:39)
    at /Users/natevw/…/my-app/node_modules/node_modules/electron-rebuild/node_modules/babel-core/node_modules/core-js/modules/es6.promise.js:100:28
    at process._tickCallback (node.js:355:11)

My package.json is:

{
  "name": "some-app",
  "private": true,
  "version": "0.0.0",
  "description": "Some App",
  "repository": {
    "type": "git",
    "url": "…"
  },
  "main": "backend.js",
  "dependencies": {
    "d3": "^3.4.11",
    "fermata": "git://github.com/natevw/fermata.git#upcoming",
    "keytar": "^2.0.3",
    "node-hid": "https://github.com/natevw/node-hid/releases/download/test-node-12/node-hid-0.3.2.tgz"
  },
  "devDependencies": {
    "electron-prebuilt": "^0.26.0",
    "electron-rebuild": "^0.1.4"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "while :; do ~/Downloads/atom-shell-v0.17.2-darwin-x64/Atom.app/Contents/MacOS/Atom .; done"
  },
  "author": "Nathan Vander Wilt"
}

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
IsaiahJTurnercommented, Aug 19, 2016

Any fix?

2reactions
ahallickscommented, Jun 8, 2016

Okay, I think I’ve figured out why I get the issue now. I had a postinstall script that ran:

"postinstall": ".\\node_modules\\.bin\\electron-rebuild.cmd"

so that it automatically did the rebuilt on install. This seems to be where things went wrong as, when I manually run .\node_modules\.bin\.electron-rebuild.cmd after npm install everything works just fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fails with latest version of electron-prebuilt · Issue #68 - GitHub
Canary file 'common.gypi' doesn't exist Error: Canary file 'common.gypi' doesn't exist at checkForInstalledHeaders$ ...
Read more >
Canary test failed to write file in directory /tmp... - 64378
Hi, Getting frequent alerts on HDFS health test. Canary test failed to write file in directory - 64378.
Read more >
Unit Testing - Webpack from Nothing
If we run yarn test again, however, we'll only run the test in canary.test.js , because that's the file defined as our entry...
Read more >
AD KRBTGT & making your own canaries - CyberDrain
The second part we'll focus on creating our own 'Canary' files. These files can be used for a lot of things but the...
Read more >
mozilla-central: changeset 400729 ...
This file exists only because there's no other way to avoid errors in the -# Chromium build due to the inclusion of build/java.gypi....
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