mattdesl / color-wander

:art: Generative artwork in node/browser based on a seeded random
http://color-wander.surge.sh/
1.62k stars 147 forks source link

NPM Install Issue #10

Closed Rheisen closed 8 years ago

Rheisen commented 8 years ago

canvas@1.3.15 install /Users/nesiehr/Documents/node/color-wander/node_modules/canvas node-gyp rebuild

Package cairo was not found in the pkg-config search path. Perhaps you should add the directory containing cairo.pc' to the PKG_CONFIG_PATH environment variable No package 'cairo' found gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 15.4.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/nesiehr/Documents/node/color-wander/node_modules/canvas gyp ERR! node -v v4.4.2 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok npm ERR! Darwin 15.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v4.4.2 npm ERR! npm v3.8.6 npm ERR! code ELIFECYCLE

npm ERR! canvas@1.3.15 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the canvas@1.3.15 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, 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 information on how to open an issue for this project with: npm ERR! npm bugs canvas npm ERR! Or if that isn't available, 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/nesiehr/Documents/node/color-wander/npm-debug.log

mattdesl commented 8 years ago

This is an issue with node-canvas – it is notoriously difficult to install since it has a variety of native dependencies. Check their readme and post an issue in that repo if you still have trouble. :smile:

https://github.com/Automattic/node-canvas