Add error highlighting lack of Windows x86 node.exe support

This commit is contained in:
Lovell Fuller 2018-04-17 20:37:19 +01:00
parent 8933f1128d
commit 771e44f2a7

View File

@ -29,6 +29,9 @@ try {
} else {
// Is this arch/platform supported?
const arch = process.env.npm_config_arch || process.arch;
if (platform() === 'win32-ia32') {
throw new Error('Windows x86 (32-bit) node.exe is not supported');
}
if (arch === 'ia32') {
throw new Error(`Intel Architecture 32-bit systems require manual installation of libvips >= ${minimumLibvipsVersion}\n`);
}