back to index

Installing native-dep npm packages on Windows

A few npm packages ship C++ or Python code that needs node-gyp. On Windows that means windows-build-tools.

published Jun 29, 2017 tags #javascript #node #windows

~/posts/native-deps-npm-on-windows $ cat post.md

/ LANG EN / 中文
/ THEME / /

Just for the record. Some Node packages contain C++ or Python code that node-gyp compiles down to a .node binary before it can be loaded.

To make that build pipeline work on Windows, install windows-build-tools. Global is the right move — saves you setting it up over and over:

npm install --global --production windows-build-tools
npm config set msvs_version 2015 --global

Python needs to be installed first.

back to index