We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c0a6d7 + 4f2f641 commit cb94da7Copy full SHA for cb94da7
scripts/post-install.js
@@ -50,7 +50,15 @@ console.log(`\x1b[32m> Moving conpty.dll...\x1b[0m`);
50
if (os.platform() !== 'win32') {
51
console.log(' SKIPPED (not Windows)');
52
} else {
53
- const windowsArch = os.arch();
+ let windowsArch;
54
+ if (process.env.npm_config_arch) {
55
+ windowsArch = process.env.npm_config_arch;
56
+ console.log(` Using $npm_config_arch: ${windowsArch}`);
57
+ } else {
58
+ windowsArch = os.arch();
59
+ console.log(` Using os.arch(): ${windowsArch}`);
60
+ }
61
+
62
if (!CONPTY_SUPPORTED_ARCH.includes(windowsArch)) {
63
console.log(` SKIPPED (unsupported architecture ${windowsArch})`);
64
0 commit comments