用npm安装canvas用的这两句代码sudo apt-get install libcairo2-dev和npm install canvas
出现错误
sh: 1: node-waf: not found
npm ERR! canvas@0.10.2 preinstall: node-waf configure build
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the canvas@0.10.2 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! System Linux 3.8.0-29-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "canvas"
npm ERR! cwd /home/baobao/baobao/spriter
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
root@ubuntu:/home/baobao/baobao/spriter#
已经好几天,在线等,希望有懂的人告诉我