From 1290ddb5c9e321170e9fd137c0e6a3f2ab9a75df Mon Sep 17 00:00:00 2001 From: Ben Vinson Date: Thu, 22 Sep 2016 09:46:31 -0600 Subject: [PATCH] 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tutorial/using-native-node-modules.md b/docs/tutorial/using-native-node-modules.md index e8e28cd0359d..0b8322df251e 100644 --- a/docs/tutorial/using-native-node-modules.md +++ b/docs/tutorial/using-native-node-modules.md @@ -21,6 +21,7 @@ An example of installing all dependencies for Electron: export npm_config_target=1.2.3 # The architecture of Electron, can be ia32 or x64. export npm_config_arch=x64 +export npm_config_target_arch=x64 # Download headers for Electron. export npm_config_disturl=https://atom.io/download/atom-shell # Tell node-pre-gyp that we are building for Electron.