Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Package cairo was not found in the pkg-config search path. #1

Open
guilhermeutzig opened this issue Apr 30, 2019 · 0 comments
Open

Comments

@guilhermeutzig
Copy link

When trying to run npm i node-pixelate it is returning this error:

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 (/Users/guilhermeu/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/Users/guilhermeu/.nvm/versions/node/v8.9.4/bin/node" "/Users/guilhermeu/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/guilhermeu/Projects/pixelar/node_modules/canvas
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

Already tried to install these:

$ brew link cairo --force
$ export PKG_CONFIG_PATH=/usr/x11/lib/pkgconfig
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/X11/lib/pkgconfig

Nothing is working, does anybody know how to install?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants