Skip to content

Instantly share code, notes, and snippets.

@fliptheweb
Created November 10, 2015 15:38
Show Gist options
  • Save fliptheweb/366e04892cfa48398d15 to your computer and use it in GitHub Desktop.
Save fliptheweb/366e04892cfa48398d15 to your computer and use it in GitHub Desktop.
$ npm install -g node-legofy
-
> [email protected] install /Users/fliptheweb/.nvm/versions/node/v0.12.7/lib/node_modules/node-legofy/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_cairo_freetype.sh' returned exit status 0. 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 (/Users/fliptheweb/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "node" "/Users/fliptheweb/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/fliptheweb/.nvm/versions/node/v0.12.7/lib/node_modules/node-legofy/node_modules/canvas
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 15.0.0
npm ERR! argv "/Users/fliptheweb/.nvm/versions/node/v0.12.7/bin/node" "/Users/fliptheweb/.nvm/versions/node/v0.12.7/bin/npm" "install" "-g" "node-legofy"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/fliptheweb/projects/helios/npm-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment