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

Issue: node_modules/canvas/build/Release/canvas.node'\nwas compiled against a different Node.js version using\nNODE_MODULE_VERSION 115. This version of Node.js requires\nNODE_MODULE_VERSION 109 #2485

Open
nguyennhukhanh opened this issue Feb 5, 2025 · 4 comments

Comments

@nguyennhukhanh
Copy link

nguyennhukhanh commented Feb 5, 2025

The module node_modules/canvas/build/Release/canvas.node was built with a different Node.js version (NODE_MODULE_VERSION 115), but the current Node.js version requires NODE_MODULE_VERSION 109. This version mismatch is causing compatibility issues.

@prabhanukash
Copy link

facing same issue need help here to resolve this issue

this was happeing during jenkins tests phase

@GermainMichaud
Copy link

@nguyennhukhanh @prabhanukash
Do you use PNPM as your package manager? If so, it's because of version 10. With version 9 everything works fine. That was my problem.

@nguyennhukhanh
Copy link
Author

I downgraded the Node.js version, and it is working fine now. However, lowering the version is not an ideal solution.

~/code/backend$ npm -v  
10.8.2  
~/code/backend$ node -v  
v18.20.6  

@Dmytro-Uchkin-Ytree
Copy link

Dmytro-Uchkin-Ytree commented Mar 4, 2025

npm rebuild canvas might help

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

4 participants