Automattic / node-canvas

Node canvas is a Cairo backed Canvas implementation for NodeJS.
10.17k stars 1.17k forks source link

Not able to install this using Node 18.17.1. Please help. #2303

Closed satya4satyanm closed 9 months ago

satya4satyanm commented 1 year ago

Not able to install this using Node 18.17.1. Please help.

Miauwdy commented 1 year ago

Same on Node 20.8.0.. I tried installing chartjs-node-canvas which relies on canvas so that one does not work either.

alxwstn commented 11 months ago

I wanted to call out that we ran into some issues recently with canvas install. Did y'all remove some older builds? This is link is now 404ing https://github.com/Automattic/node-canvas/releases/download/v2.9.0/canvas-v2.9.0-node-v108-darwin-unknown-x64.tar.gz

We are using resemblejs v4.11 which expects canvas 2.9.0 as an optional dependency. We were able to overcome this issue using module resolutions in our package.json and pointing to 2.11.2. Hope this helps folks facing similar issues!

zbjornson commented 10 months ago

@alxwstn We haven't removed any prebuilds, but v2.10.2 was the first version with builds for Node.js 18.

zbjornson commented 10 months ago

@satya4satyanm please post the error message you're getting, and/or see the troubleshooting guide.