-
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
Command failed:node-pre-gyp install --fallback-to-build --update-binary #2186
Comments
Same issue of 404 at https://github.com/Automattic/node-canvas/releases/download/v2.11.0/canvas-v2.11.0-node-v108-darwin-unknown-arm64.tar.gz node v18.12.1 |
Fixed for me: |
But is it the right way to install so many packages? |
It's related to #2036 and other similar issues. Currently it still seems to be impossible to build a self contained version of canvas, so you have to install dependencies by other means. |
I am running into this myself trying to run with Node.js 18 on Windows. There were no issues upgrading my Linux systems to Node.js 18 and "npm rebuild" worked fine. I am currently using Node.js 16.19.0 on Windows and it works fine. However, I just learned that the Node.js organization has moved the end-of-life for Node.js 16 forward seven months to September 2023, due to the OpenSSL end-of-life, so I realized I needed to look at Node.js 18 sooner than later for Windows. UPDATE: I found the issue and it is rather odd. On Linux, everything works fine. "npm rebuild" updates the code to the latest Node platform. But on Windows it kept failing. Just for fun, I wiped the node_modules directory and did an "npm i". That worked. The correct node-canvas for Node 18 downloaded. |
can reproduce - macbook m1 ventura on a docker container |
Hey, guys! I also had the same issue. Maybe you can try creating an .npmrc file under the project root path, specifying the mirror address of the canvas, like this: |
Wow, bro, you're so cool! I installed it in the Windows environment for two days without success until I used your method! |
it work for me too. |
In case someone is upgrading to Nodejs v18, upgrade might be the solution |
Looks it's expected way based on the canvas documentation - https://github.com/Automattic/node-canvas/wiki/Installation%3A-Mac-OS-X |
I have several Raspberry's that I use with node-canvas. Finally created myself a tiny bash script to handle it:
There was a reason the -dev packages were required but I have forgotten. |
Mine is m1, this method helped me solve the problem |
I have the same issue, running |
This doesn't fix anything for me. Using node version |
Brew install did't work for me, but after adding "node-gyp," it worked fine. (+ removed node_modules)
|
|
Tks @bora001 your solution worked for me on Windows. |
I'm facing the same issue while installing [email protected]
The error was related to being unable to run the make command. I fixed it by completely reinstalling Xcode with the following steps:
|
I followed this step and its worked for me |
This work for me, running on mac m1 with macos 15.0.1 |
Solution that definitely solved the problem for us, just run the npm install or yarn inside python environment:
|
There are several different types of issues in the comments, but since #2354 was merged, I don't think the issue in the OP would happen so I'm going to close it. Following the install instructions (#2186 (comment)) also would have worked.
|
that works for me !! |
Steps to Reproduce
When I run
yarn
, the error is as follows:This is the information for run
yarn why canvas
:Your Environment
The text was updated successfully, but these errors were encountered: