Skip to content

Instantly share code, notes, and snippets.

@karataev
Created September 23, 2019 11:47
Show Gist options
  • Save karataev/571a53c2667d7ac24e1e1634e4de061b to your computer and use it in GitHub Desktop.
Save karataev/571a53c2667d7ac24e1e1634e4de061b to your computer and use it in GitHub Desktop.
node-gyp on windows

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment