-
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
Install canvas failed node-canvas #536
Comments
I think I have the same issue as above. I followed the instructions from the wiki and also tried the wget command in the read me. Everything seems to install okay. Here is the output from the console:
Node v: 0.12.0 |
same problem.
|
Not looking too closely at your errors, but I see you're all using v0.11 or 0.12. I couldn't get node-canvas to work with a version later than 0.10. (#535) |
node v0.12.2 worked fine for me on windows 7 32bit using the 32bit gtk package. Failed on windows 7 64bit using the 64bit gtk package. edit: Using the 32bit gtk2 worked fine for me on Windows 7 64bit. 👍 http://www.gtk.org/download/win32.php Would really love to see an easier and more up to date windows workflow though... |
Same error here on OSX using Node 0.10.38. I followed the install instructions by hand and have the same problem with the |
I also have this problem on 64 bit windows 8 when trying to use three.js on node. Any suggestions? |
@xoorath was that with 32-bit node? (e.g. 32-bit everything) |
@zbjornson 32-bit everything worked as expected. 64-bit everything didn't. The 64-bit setup was fixed by switching GTK to 32-bit, while leaving everything else 64. |
Hey guys, I've posted a solution for this. |
Please see the posted solution, or the updated wiki-page for windows. For OS X please try the updated installation instructions. Thanks |
I install canvas for gitbook-plugin, but error again and again.
I have done this url, but its not work.
https://github.com/Automattic/node-canvas/wiki/installation---osx
Here is error log:
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/canvas
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "canvas" "-g"
npm ERR! node v0.12.0
npm ERR! npm v2.7.0
npm ERR! code ELIFECYCLE
npm ERR! canvas@1.2.1 install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.2.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the canvas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls canvas
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/ccQ/npm-debug.log
The text was updated successfully, but these errors were encountered: