-
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
"npm install canvas" failed #2404
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
I faced the same issue on MacOS (v14.5, M1 Pro chip). Environment: Node v18.20, npm v9.9.3
How can I fix this issue? |
Hi, have you tried this (for MacOS): |
thanks, this helped |
I had the same errors running Windows 10 x64, Node.js 22.4.1, neither stable nor next worked. Turns out I completely missed the Wiki. Followed its instructions and installed the required dependencies. @waldolin In your environment description, it looks like you're installing |
|
Then the README should be updated. Because right at the top, it says: "By default, binaries for macOS, Linux and Windows will be downloaded." |
Issue or Feature
Steps to Reproduce
Your Environment
npm list canvas
oryarn list canvas
):windows
i have installed node-pre-gyp
set C:\GTK
and add path of environment
PS C:\Users\lin.node-red> npm install -g node-pre-gyp
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
added 67 packages in 4s
3 packages are looking for funding
run
npm fund
for detailsPS C:\Users\lin.node-red> node -v
v22.2.0
The text was updated successfully, but these errors were encountered: