Skip to content

Installation: Ubuntu and other Debian based systems

duozokker edited this page Oct 9, 2018 · 3 revisions

Applies to Ubuntu, raspbian and other Debian-based distributions.

Installing dependencies

$ sudo apt-get update 
$ sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev 

Note that libgif-dev, librsvg2-dev and libjpeg-dev are optional, and only required if you want gif, svg and jpeg support, respectively.

Installing node-canvas

$ npm install canvas