Installing npm packages on windows might be a tough task. One project I worked on had these dependencies: "canvas": "1.6.13", "chartjs-node": "^1.7.1",
Installing these dependencies failed with error
gyp ERR! build error
I googled this issue and there are a lot of pages regarding this. One of them: https://spin.atomicobject.com/2019/03/27/node-gyp-windows/
But after following that steps I still got the error.
What really helped me is downloading GTK program and unzipping it in C:/GTK
folder
https://github.com/benjamind/delarre.docpad/blob/master/src/documents/posts/installing-node-canvas-for-windows.html.md#node-canvas-installation