LearnBoost/node-canvas — Issue #142: node-waf configure build failed with 127
Author: danielmahon
Created: 2012-01-12 18:13:38+00:00
State: open

Im getting this error when trying to install node-canvas on Ubuntu 11.10. Ive installed cairo already.

> canvas@0.8.3 preinstall /var/www/node_modules/canvas
> node-waf configure build

sh: node-waf: not found
npm ERR! error installing canvas@0.8.3 Error: canvas@0.8.3 preinstall: `node-waf configure build`
npm ERR! error installing canvas@0.8.3 `sh "-c" "node-waf configure build"` failed with 127
npm ERR! error installing canvas@0.8.3 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing canvas@0.8.3 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing canvas@0.8.3 at maybeExit (child_process.js:359:16)
npm ERR! error installing canvas@0.8.3 at Process.onexit (child_process.js:395:5)
npm ERR! canvas@0.8.3 preinstall: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 127
npm ERR!
npm ERR! Failed at the canvas@0.8.3 preinstall script.
npm ERR! This is most likely a problem with the canvas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls canvas
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.0.0-13-virtual
npm ERR! command "node" "/usr/local/bin/npm" "install" "canvas"
npm ERR! cwd /var/www
npm ERR! node -v v0.6.2
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/npm-debug.log
npm not ok