-
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
Windows can't find prebuilds for 3.0.0-rc2 #2415
Comments
Does the install log show the URL that it tried to fetch? |
Yes, found it:
Here's full
Seems like |
With the caveat that I don't know anything about node-canvas/prebuild/tarball.sh Lines 2 to 9 in 8b238be
|
Just an FYI for anyone who just wants to test something on node 22 that uses canvas. In testing I was able to get it to work on windows by basically making a empty canvas folder in node_modules, copying the contents of this repo into the folder, then also copying the files from the misnamed windows file ( https://github.com/Automattic/node-canvas/releases/download/v3.0.0-rc2/canvas-v3.0.0-rc2-napi-v7-win32unknown-x64.tar.gz ) into that directory. Once I did that I was able to build my package and canvas worked. This was for sure a hacky solution I wouldn't use anywhere but testing :-) It does show the package would probably work if this file was named correctly. |
Thanks, I fixed the name of the bundle for both Windows and MacOS. Can you give it another try please? |
Seems like it works for me now on windows with 3.0.0-rc2 on node 22 |
Works on Windows with 3.0.0-rc2 on node 20, closing, thanks! |
Issue or Feature
Tried to
npm install canvas@next
on Windows with node 20 and 22, but it failed to find prebuilds:Your Environment
npm list canvas
oryarn list canvas
):3.0.0-rc2
v22.6.0
on Windows 11I know that I probably can do manual build, but I would rather not, will probably use Node v20 with canvas@2 prebuilds, just wanted to give feedback on the RC, cheers!
The text was updated successfully, but these errors were encountered: