I am writing code to load c++ dll from electron. My dll is 32 bit. I am using NaN and bindings to achieve this. I used the following commands to set build for 32 bit:
node-gyp clean configure build --verbose --arch=ia32
npm set npm_config_arch ia32
npm install --arch=ia32 electron-prebuilt -g
When I run npm install I get the following error:
fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
Although I am able to build and run my module with the following command:
electron-rebuild -f -w yourmodule --arch=ia32
But I am wondering why npm install fails.