I am trying to install node-canvas with LAMP on CentOs 6. I have already installed and updated node js in the latest, as well as NMP.
When I run the command: npm install canvas I just get the following errors:
[root @ localhost tmp] # sudo npm install canvas & gt; Canvas@1.2.1 installed / tmp / node_modules / canvas & gt; The node-GIP reconstruction package was not found in the pangocairo pkg-config search path. You should probably add the directory containing `pangocairo.pc 'to the PKG_CONFIG_PATH environment variable. No package 'Pongokaio' was found: Status returned to 'pkg-config pangocairo --libs' 1. Binding to call. GP Jeep ERR! Configure Error Gipple ERR! Stack error: failed with `gyp` exit code: 1 gip err! Stack on hair process. Copax (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! Stack on childProcess.emit (events.js: 98: 17) gyp ERR! On Stack Process. Child Process._hand.onexit (child_process.js: 820: 12) gyp ERR! System Linux 2.6.32-504.8.1.el6.x86_64 GIP ERR! Command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuilding" GIP ERR! Cwd / tmp / node_modules / canvas gyp ERR! Node-v v0.10.36 gip err! Node-Jeep-V v1.0.2 GEP ERR! Not right NPM ERR! Linux 2.6.32-504.8.1.el6.x86_64 NMP ERR! Argv "node" "/ usr / bin / npm" "install" "canvas" NPM ERR! Node v0.10.36 NMP ERR! NPM v2.7.1 NMP ERR! Code ELIFECYCLE NPM ERR! Canvas @ .11.1 Installed: 'Node-GIP Reconstruction' NPM ERR! Exit status 1 NMR ERR! NPM ERR! Canvas@1.2.1 Install script failed 'Node-Jeep Rebuild' failed NPM ERR! This canvas package is most likely in NPM ERR! NPM ERR with NPM itself! Tell the author that it fails on your system: NPM ERR! Node-jeep NPM ERR rebuild! You can get your information: NPM ERR! NMP owner LS canvas NPM ERR! Upward additional logging output is likely to occur. NPM ERR! Please include the following file with any support request: NPM ERR! /tmp/npm-debug.log
You need to install Cairo and some other You can set the node canvas before the libraries.
Just use the following commands:
yum install -y cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel
No comments:
Post a Comment