Skip to content

Instantly share code, notes, and snippets.

@wordijp
Created August 6, 2016 00:12
Show Gist options
  • Save wordijp/08c5c1ca0c0c8f3a8d1014020fd02a1c to your computer and use it in GitHub Desktop.
Save wordijp/08c5c1ca0c0c8f3a8d1014020fd02a1c to your computer and use it in GitHub Desktop.
Windowsでnode-gyp
公式も役立つ
https://github.com/nodejs/node-gyp
1. Visual C++ Build Toolsをデフォルトオプションのままインストール
2. Python2.7をインストール
3.
```
$ npm config set msvs_version 2015
$ npm config set python d:\path\to\python27\python.exe
```
4. $ npm install --global node-gyp
5. $ npm install node-gyp
6. エラーが出たら
```
# https://github.com/nodejs/node-gyp/issues/972
$ npm -g install npm@next
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment