Add npm_config_target_arch to native module doc
authorBen Vinson <vinsonb@gmail.com>
Thu, 22 Sep 2016 15:46:31 +0000 (09:46 -0600)
committerGitHub <noreply@github.com>
Thu, 22 Sep 2016 15:46:31 +0000 (09:46 -0600)
commit1290ddb5c9e321170e9fd137c0e6a3f2ab9a75df
tree87490d667524c7b37d5cf6fe587cc026e4b6e659
parentea4272291806aeceb4573a710126ee5e23975fca
Add npm_config_target_arch to native module doc

We ran into an issue when creating a 32-bit binary on 64-bit Windows where node-pre-gyp kept using the 64-bit library. Setting the `npm_config_target_arch` environment variable resolved the problem for us and caused the 32-bit binary to be built and used.
docs/tutorial/using-native-node-modules.md