Skip to content

Instantly share code, notes, and snippets.

@nagelflorian
Created January 17, 2016 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nagelflorian/f6ebb3c0dcbdd8dc4f5a to your computer and use it in GitHub Desktop.
Save nagelflorian/f6ebb3c0dcbdd8dc4f5a to your computer and use it in GitHub Desktop.
Node-Color-Thief on Ubuntu Server

Installing dependencies

$ sudo apt-get update
$ sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

Important: libjpeg8-dev is required rather than just libjpeg-dev

Installing node-canvas

$ sudo npm install canvas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment