node-gfx / node-canvas-prebuilt

Repo used to build binaries for node-canvas on CI
169 stars 31 forks source link

Electron build fails (Pre-built binaries not found) #84

Open denniskawurek opened 5 years ago

denniskawurek commented 5 years ago

When trying to build an electron application which uses the canvas module the step

  • rebuilding native production dependencies platform=win32 arch=x64

fails with the following message:

node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.0/canvas-v2.6.0-electron-v3.0-win32-unknown-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for canvas@2.6.0 and electron@3.0.11 (electron-v3.0 ABI, unknown) (falling back to source compile with node-gyp) 

When updating to the current Electron version it also fails. It seems that the package is missing.

erwstout commented 5 years ago

This seems to be affecting the entire package, not just anything related to Electron, FWIW.

florianze commented 5 years ago

I am currently facing the same problem with a raspberry pi - error 404 as the URL in the installation process is wrong. In my case it has "arm" in the URL, which simply doesn't exsist...

denniskawurek commented 5 years ago

So I found out that a solution may be to build the packages by self from the sources? But this also failes on my system.

chearon commented 5 years ago

Sorry everyone, I targeted the most popular architectures and OSes. You can see which combinations are currently supported by going to a version like v2.6.0. I may do ARM at some point but have no plans for Electron, happy to take a PR though.

@erwstout which versions/processor/OS?

@florianze see #9

@denniskawurek Electron is not supported for prebuilds, you'll have to follow the instructions in the node-canvas repo to make sure it can build