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

Canvas fails to import after install #2380

Open
sojs-coder opened this issue May 7, 2024 · 2 comments
Open

Canvas fails to import after install #2380

sojs-coder opened this issue May 7, 2024 · 2 comments

Comments

@sojs-coder
Copy link

Issue or Feature

Node canvas fails to run, none of the issues listed in the troubleshooting guide helped me at all.

A simple require statement throws the error.

Steps to Reproduce

var Canvas = require('canvas');

One line... that is all.

Installed with

npm i canvas

Did not build, everything seemed to install fine, no errors.

Here is what happens when I run the code....
image

Your Environment

  • Version of node-canvas:
    image

  • Environment: node v20.11.1, Linux 22.04.1-Ubuntu x86_64 GNU/Linux, running in a REPL on repl.it

@namnguyenthanhwork
Copy link

Are you install on mac?

@sojs-coder
Copy link
Author

no, this is on ubuntu @namnguyenthanhwork

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

2 participants