kevoj / angular-editor-fabric-js

Drag-and-drop editor based on Fabricjs for Angular.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation errors

daslicht opened this issue · comments

Hi, when running npm install I get :

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/daslicht/.node_modules/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/bin/node" "/Users/daslicht/.node_modules/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/daslicht/DEV/ANGULAR/angular-editor-fabric-js/node_modules/canvas
gyp ERR! node -v v7.9.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 

idea?

hi, try with this:

sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev

regards.

thanks !