-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install canvas #1773
Comments
node:12.18.1-alpine Error Message node-pre-gyp WARN Using needle for node-pre-gyp https download npm ERR! A complete log of this run can be found in: |
@Paultje52 node-canvas doesn't really support 32-bit Node.js unfortunately. To make it work, I think you'd have to compile cairo/pango/etc. for 32-bit Windows. The 32-bit versions of those libraries that I've found online aren't built in a way that's compatible with node-canvas. @bug249286 please see the musl section of #1511 - prebuilds are only available for glibc. |
I don't think I'm using 32-bit node. How can I check that? |
@Paultje52 your install log includes |
Can anyone suggest any guide to download node-canvas on windows 32-bit? |
I get the same error on x64 |
The same error cannot happen on x64. Please open a separate issue with the information in the issue template. If you're getting the message |
@Paultje52 Have to ask you, did you solve this problem? |
I have the same problem. Install this npm package is a madness. |
Anyone solved this problem ? |
|
yes please if someone has found pls guide. |
tried this but nothing happened. |
I followed all steps and installed whatever was required but still this error is popping up again and again. |
work for me.
try it. |
that did the job! with following before: |
…-rs/canvas`) Fixes font not rendering on backend due to a bug in node-canvas v2.11.2. See: Automattic/node-canvas#2285 Couldn't downgrade to v2.10.2 due to build issues on Windows. See: Automattic/node-canvas#1773 (comment) R v3.0.0 of node-canvas will remove node-pre-gyp which should make it a bit easier to install? See: https://github.com/Automattic/node-canvas/releases/tag/v3.0.0-rc2
Thanks. I was missing the GTK part. Had to install Python, VS Code + C++ build tools, before GTK. IDK why it's triggering the compilation instead of just fetching the pre-built, the host machine is a commonly found X86 with Win 11, all with X64 stuff (Node,…) |
Hello, I can't install canvas. When using
npm i canvas
, it just stops after a couple seconds. When usingnpm i -s canvas --verbose
, I get this error.When reading, I found out that I don't have one of the dependencies installed,
GTK 2
. But here is the problem: I can't install it. When clicking oncairo
, then clicking ondownload
and then clicking onofficial GTK+ for Windows page
, I get a 404 not found.When clicking
win32
orwin64
, it just stops loading after about a second. Anyone hass an idea how I can fix this?The text was updated successfully, but these errors were encountered: