mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Add error highlighting lack of Windows x86 node.exe support
This commit is contained in:
parent
8933f1128d
commit
771e44f2a7
@ -29,6 +29,9 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
// Is this arch/platform supported?
|
// Is this arch/platform supported?
|
||||||
const arch = process.env.npm_config_arch || process.arch;
|
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') {
|
if (arch === 'ia32') {
|
||||||
throw new Error(`Intel Architecture 32-bit systems require manual installation of libvips >= ${minimumLibvipsVersion}\n`);
|
throw new Error(`Intel Architecture 32-bit systems require manual installation of libvips >= ${minimumLibvipsVersion}\n`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user