-
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
node-canvas wont install, what so ever #2387
Comments
I get the following error when trying to install via NPM on Node version 22.1.0:
|
To fix node-canvas issue on Mac, I ran the following steps:- Fix node-canvas |
I'm on windows 😢 |
Try node 20 instead of 22. |
Is there an easy way to go down to node 20 without using nvm? |
The answer probably depends on how you installed node in the first place. There's lots of tiny details that can't be covered in this issue. I suggest you look at the instructions that come with your original node installation. But if struggle to downgrade to downgrade, then trying to run canvas from master, either as a direct dependency, or as an override is an option. Nvm is likely your best option. |
On macOS, If you see
run
|
Added `[email protected]` and `python-setuptools` to instructions as per comments in Automattic#2371 and Automattic#2387
When will nodejs 22.2.0 be supported? |
|
Anyone using Windows x64 or Linux x64/glibc, please try For any other platforms and architectures, v3.0.0 can be built from source following the compilation section of the readme. |
Issue or Feature
Steps to Reproduce
using
yarn add node-canvas
NOTE: warning Resolution field "[email protected]" is incompatible with requested version "strip-ansi@^7.0.1"
is because i have to use 6.0.0 otherwise i get
Your Environment
npm list canvas
oryarn list canvas
):The text was updated successfully, but these errors were encountered: