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
npm intall not working on node v22 #2377
Comments
Node.js 22 was just released, and it seems like it's not compatible with the `canvas` package. This commit pins the version on GitHub actions to Node.js 21 as a temporary workaround. This commit should be reverted once Automattic/node-canvas#2377 is fixed.
Node.js 22 includes v8/v8@e48c472, which removed the v8::ObjectTemplate::SetAccessor(
v8::Local<v8::String>&,
void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&),
void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&),
v8::Local<v8::Object>&,
v8::AccessControl&, // Removed!
v8::PropertyAttribute&
) #2235 probably fixed this problem by not using |
@hong6316 use
in your package.json for the time being ... Works with node 22 |
needed because of Automattic/node-canvas#2377
Not yet adding 22 because of Automattic/node-canvas#2377
Not yet adding 22 because of Automattic/node-canvas#2377
needed because of Automattic/node-canvas#2377
That's not possible, I didn't add the canvas module directly to package.json. |
@hong6316 |
Issue or Feature
npm intall not working on node v22.
I checked #1511 but the error log is not the same
I already proceed the below step but It's not working on node 22(other node versions work fine)
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
https://app.travis-ci.com/github/enactjs/sandstone/jobs/620963689
Steps to Reproduce
https://app.travis-ci.com/github/enactjs/sandstone/jobs/620963689
Your Environment
npm list canvas
oryarn list canvas
): v2.11.2The text was updated successfully, but these errors were encountered: