LoginSignup
15
15

More than 5 years have passed since last update.

Windows8でnode-gypを入れるメモ

Posted at

結構めんどかったのでメモ。Windows8.1、node v0.10.22です。

node-gypはNode.jsのネイティブ拡張モジュールをビルドするためのツールです。自分はtopojsonをインストールしようとした時に、node-gypが必要だったのでインストールしました。

まずpythonがないと

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

とエラーを吐くのでpythonを入れます。node-gypの説明にあるように、python 2.7.xにした方がいいです。入れたらパスを通しておきます。

あとはVisual Stadio 2012 for Windows Desktopが必要です。ExpressでOKなので入れます。

以上でnode-gypのインストールが出来るはずです。後はtopojson入れる時なんかにもちゃんと拡張モジュールビルドしてくれるようになります。

書いてみたら別にめんどくさくはない感がありますね。結局VS2012のインストールが長くてめんどくさい感じだった気が。

15
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
15