小编pli*_*mbs的帖子

在pkg-config搜索路径中找不到包cairo.Node js安装canvas问题

我在安装在节点中安装canvas模块时遇到问题.它似乎与cairo有关我收到此错误...

npm http GET https://registry.npmjs.org/canvas
npm http 304 https://registry.npmjs.org/canvas
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan

> canvas@1.1.3 install /Users/plimb/Desktop/motion-therapy/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! …
Run Code Online (Sandbox Code Playgroud)

terminal canvas cairo node.js

91
推荐指数
7
解决办法
5万
查看次数

标签 统计

cairo ×1

canvas ×1

node.js ×1

terminal ×1