Canary file 'common.gypi' doesn't exist
See original GitHub issueGetting 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:
- Created 8 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top 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 >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
Any fix?
Okay, I think I’ve figured out why I get the issue now. I had a postinstall script that ran:
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
afternpm install
everything works just fine.