I am installing canvas on ubuntu 16.04 LTS for installing npm package qr-js.
I performed these steps - 1. sudo apt-get update 2. sudo apt-get install libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++ 3. sudo npm install canvas
and the result is-
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
my nodejs version is v4.2.6 & npm is v3.5.2
can any body help me..?