Skip to content
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

Compatibility with Node version 12 #123

Open
vitorvillaras opened this issue Feb 1, 2021 · 2 comments
Open

Compatibility with Node version 12 #123

vitorvillaras opened this issue Feb 1, 2021 · 2 comments

Comments

@vitorvillaras
Copy link

Hi,
The issue #78 has been closed but I cannot install a canvas-prebuilt with node 12.
The current version of node i am using is 12.16.0 for windows.

Could you explain a bit better the mapping between canvas and canvas-prebuilt versions and the dependency of each to node?
I could install with version 10.16.x but not with 12.16.x.

Thanks

@jobelenus
Copy link

I'm also having problems on OSX: Error: 404 status code downloading tarball https://github.com/chearon/node-canvas-prebuilt/releases/download/v2.0.0-alpha.14/canvas-prebuilt-v2.0.0-alpha.14-node-v72-darwin-unknown-x64.tar.gz

@zbjornson
Copy link
Member

@vitorvillaras releases before 2.7.0 are listed here: https://github.com/node-gfx/node-canvas-prebuilt/releases. Canvas 2.7.0 and later will be served from Automattic/node-canvas (https://github.com/Automattic/node-canvas/releases/tag/v2.7.0).

There's a table here https://nodejs.org/en/download/releases/ that shows the NODE_MODULE_VERSION for each Node.js version. For Node.js 12, that's 72, so you'd be using canvas-vX.Y.Z-node-v72-win32-unknown-x64.tar.gz. If you see that file in the releases page, that means it should be work. The changelog also lists if a change was made to support a new version of Node.js.

@jobelenus that's a very old release that doesn't have Node 14 support. Can you try a recent release (2.6.1)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants