-
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
error when installing Canvas node-gyp rebuild
#913
Comments
I am also seeing this error after an Node: 6.9.0 Note that |
I think this is also mentioned on #911 I ran |
Followed the steps here: https://github.com/Automattic/node-canvas/wiki/Installation---OSX Then ran: Worked for me |
This worked for me... $ npm install -g node-gyp |
If the above solution doesn't work, try uninstall
OSX: 10.12.5 |
If your install logs just say:
(as the two posted in this issue do), there's not enough info to troubleshoot. To get full build output, clone this repository and run Closing since it looks like a lot of people found solutions, and not info info to debug others. |
still impossible |
Hi there, I am installing canvas in my docker container using the cmd : npm install canvas `node-pre-gyp ERR! install response status 403 Forbidden on https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-node-v72-linux-glibc-x64.tar.gz npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: Any idea about how to resolve? |
@WentingTan Did you try this? |
You're most likely behind a proxy that is blocking the download. |
Yes we tried that. Seems it still tries to download from web and eventually hit the same error. |
We were thinking about the same root cause. If our proxy blocks external links. Is there a way to bypass the download? |
Same issue here with macOS 12.3 on a M1 Pro. Tried all options from above. :/ |
You might be able to work-around your proxy by setting the |
FWIW I had this error: node-pre-gyp WARN Using request for node-pre-gyp https download But on a 2nd try it worked just fine... |
Download and extract this file in C:\GTK |
hey listen than i install brew install pkg-config cairo libpng jpeg giflib i get error brew : The term 'brew' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
|
This will only work on MacOS or linux (if using homebrew there). Based on the output you are providing this looks like PowerShell (Windows) :) |
I was getting this error |
Also worked for me on MacOS Ventura 13.4 (22F66). I was trying to do yarn install and it was giving same error. |
What worked for me was switching to bash terminal instead of zsh. Then it was installed immediately via |
None of this helped. Please help npm i canvas output =>
|
My compute is macbook m1 , do |
If anyone having problem because of brew install python-setuptools |
Issue or Feature
error when installing with npm
Steps to Reproduce
sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
npm install --save canvas
Your Environment
Node version =7.4.0
Npm version = 4.0.5
OS = ubutu 12.04 LTS
Log
npm-debug.log.txt
The text was updated successfully, but these errors were encountered: