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

_ #1023

Closed
ghost opened this issue Oct 27, 2017 · 16 comments
Closed

_ #1023

ghost opened this issue Oct 27, 2017 · 16 comments

Comments

@ghost
Copy link

ghost commented Oct 27, 2017

_

@apexearth
Copy link

I had pretty much the same problem the other day when using chocolatey to install the prerequisites. I found the GTK folder didn't have any headers in it. I downloaded GTK manually and put it in C:\GTK and things started working.

@LinusU
Copy link
Collaborator

LinusU commented Oct 30, 2017

@megamindbrian I think that you should consider the tone you are using when posting here. You have recently made a large number of comments just complaining without trying to be constructive at all. You have also downvoted comments pointing people to the install guide for windows.

Can we get a little consistency in our dev stack from you guys. I am sick of having to go through this awful installation every single time one of you makes a change.

I don't really understand what you mean by this. What is it that we have changed?

If you want to get help from the community, I would suggest trying to use a better tone...


Could you please try and follow the manual installation instructions for Windows?

@chearon
Copy link
Collaborator

chearon commented Oct 30, 2017

We are well aware of that and if you look through the issues you would see that we are working on adding prebuilds. You can npm install canvas-prebuilt right now if you want, but that might not work for your situation if canvas is a dependency of a dependency.

This is an open source project, nobody owes you anything.

@chearon
Copy link
Collaborator

chearon commented Oct 30, 2017

I don't know why you keep saying that, the instructions tell you to unzip to C:\GTK. Can you be more specific?

@LinusU
Copy link
Collaborator

LinusU commented Oct 30, 2017

@megamindbrian

You owe it to yourself.

What do you mean with this?

@apexearth
Copy link

I didn't find these instructions confusing, and once the new step 2 was added to "Install with Chocolatey" I think it should work for most users.

@apexearth
Copy link

I ran Chocolatey with elevated permissions. I believe Chocolatey notified me on it's own that I needed to run it from an elevated prompt.
The npm install for canvas did not need anything special. No sudo, no global, no elevation...

@Tarabass
Copy link

Okay, I'm a bit confused. I installed gyp (global using npm), gtk v2 (unzipped it to c:\gtk) and turbo (used the 64bit installer) but it still it isn't working.

92 verbose stack Error: [email protected] install: node-gyp rebuild
92 verbose stack Exit status 1

It keeps nagging about python not found. Even when I installed python manually and set the env variable by hand. A lot of hassle for installing a npm package. I hope I can remember what I wanted to do with it :P

Are there solutions that work, or alternatives for node-canvas maybe?

@christian-bromann
Copy link

Check out installation guidelines here: https://github.com/nodejs/node-gyp#installation

@Tarabass
Copy link

Tarabass commented Feb 19, 2018

Thx! Will try :)

Edit:
Downgraded Python to version 2 and everything is working correctly. Thank you, Christian!

@eko24ive
Copy link

Hi guys, I think you may close this issue - we've discussed similar installation troubles on #843

@markatrosie
Copy link

@chearon's instruction link above is bad. Anyone looking for a working link can look here.

@tokarev-i-v
Copy link

tokarev-i-v commented Dec 8, 2019

Hello, guys! I had this error on installing tensorflowjs on Windows 10 using npm.
And solution is starting CMD as Admin and typing:
1. npm install -g --production windows-build-tools
2. npm install -g canvas

@Shahar-Ben-Ezra
Copy link

$ sudo apt-get update
$ sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
https://github.com/Automattic/node-canvas/wiki/Installation:-Ubuntu-and-other-Debian-based-systems

@pittersnider
Copy link

I hate having to agree with @briancullinan but installing this is always an awful experience.

@quangnv205
Copy link

Could you try installing the latest version, 2.3.0
It work for me

@ghost ghost changed the title Can't install canvas _ Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests