-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Getting error while installing canvas using npm #3047
Comments
Please help! |
Did you open an issue at https://github.com/Automattic/node-canvas ? Did you do Did you do the https://github.com/nodejs/node-gyp/blob/main/docs/README.md#node-pre-gyp-is-no-longer-maintained is a problem that we are trying to fix. On the error message:
You might try (all on one line): |
@cclauss yes, did all the steps Also did % python=python3 command Downgraded node from 22 to 20 and ugraded python from 3.9 to 3.12 for the canvas as mentioned in their issues related to installation guide but still no luck |
I was unable to make it fail: |
hey I also had this issue, changing the Python version to 3.9.13 fixed it for me |
Changing from what version to v3.9.13? |
none of this worked for me, however going here and following the compiling steps (for Mac OS X in my case) worked perfectly: https://www.npmjs.com/package/canvas |
Please look thru your error log for the string
gyp info using node-gyp@
and if the version number is less than the current release of node-gyp then please upgrade using the instructions at https://github.com/nodejs/node-gyp/blob/main/docs/Updating-npm-bundled-node-gyp.md and try your command again.Requests for help with
node-sass
are very common. Please be aware that this package is deprecated, you should seek alternatives and avoid opening new issues about it here.Verbose output (from npm or node-gyp):
The text was updated successfully, but these errors were encountered: