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 49a16a2 + a0a6ec4 commit f3ca663Copy full SHA for f3ca663
dist/npm/index.js
@@ -14,6 +14,7 @@ const ARCH_MAPPING = {
14
x64: "amd64",
15
x86_64: "amd64",
16
arm: "arm",
17
+ arm64: "arm64",
18
aarch64: "arm"
19
};
20
const PLATFORM_MAPPING = {
@@ -223,6 +224,13 @@ let continueProcess = function(askRemoveGlobalFolder) {
223
224
} catch(e) {}
225
226
let binaryPath = path.join(globalDir, binaryName);
227
+ if (process.argv.length > 3 && fs.existsSync(normalizePath(process.argv[3]))) {
228
+ let binaryDir = normalizePath(process.argv[3]);
229
+ let possibleBinaryPath = path.join(binaryDir, binaryName)
230
+ if (fs.existsSync(possibleBinaryPath)) {
231
+ binaryPath = possibleBinaryPath;
232
+ }
233
234
235
try {
236
fs.unlinkSync(binaryPath + downloadExtension);
0 commit comments