0👍
It’s a little old query, still might be useful to someone else.
I solved it by running:
sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev
These dependencies are needed before you do:
npm install chartjs-node
I hope this will fix and if still unable to proceed, comment below and I may help you out further as I was in the same situation.
Source:stackexchange.com