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

Package gobject-2.0 was not found in the pkg-config search path. #1531

Closed
gugvel opened this issue Mar 5, 2020 · 2 comments
Closed

Package gobject-2.0 was not found in the pkg-config search path. #1531

gugvel opened this issue Mar 5, 2020 · 2 comments

Comments

@gugvel
Copy link

gugvel commented Mar 5, 2020

I faced below error while run npm i chartjs-node
I am using MacOs Catalina - v10.15.3

Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing gobject-2.0.pc' to the PKG_CONFIG_PATH environment variable Package 'gobject-2.0', required by 'cairo', not 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:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:311:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.3.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/gugvel2/Documents/CSD/MP-182/csd/node_modules/canvas
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok

image

Any pointers on this error to solve..Please check
Thanks,
Velmurugan

@tgk1
Copy link

tgk1 commented Mar 18, 2020

brew install glib

@zbjornson
Copy link
Collaborator

What @tgk1 said. Also note that chartjs-node uses an ancient version of canvas that won't work with node v12.

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

3 participants