Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active December 29, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjunichi/7651369 to your computer and use it in GitHub Desktop.
Save kjunichi/7651369 to your computer and use it in GitHub Desktop.

64ビット環境で32ビット用のモジュールを作りたい

Answer

node-gyp --arch=ia32 rebuild

node-gypでエラー

VCBuild.exeが無い

npm install <module> -msvs_version=2012

Win8.1のSDKを入れたら

-msvs_versionの指定なしで動き出した。

==> node.jsのインストール時にインストールされるnpmに同梱されているnode-gypが VS2010以降に対応していないものの為、発生していた。 Updating npm's bundled node gyp に従えば、npm内のnode-gypを最新化できる。

関連Gist

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