From edec5b51dc1d6c811e46dd096caa067cb82ef64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Wed, 18 Sep 2019 01:25:10 +0100 Subject: [PATCH] fixup! src,win: add support for fetching arm64 node.lib --- lib/install.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/install.js b/lib/install.js index 3d6070b51c..93e05ec54e 100644 --- a/lib/install.js +++ b/lib/install.js @@ -323,12 +323,15 @@ function install (fs, gyp, argv, callback) { req.on('error', done) req.on('response', function (res) { - if (res.statusCode !== 200) { - if (res.statusCode === 404 && arch === 'arm64') { + if (res.statusCode === 404) { + if (arch === 'arm64') { // Arm64 is a newer platform on Windows and not all node distributions provide it. - log.verbose(res.statusCode + ' status code downloading ' + name) - return + log.verbose(`${name} was not found in ${libUrl}`) + } else { + log.warn(`${name} was not found in ${libUrl}`) } + return + } else if (res.statusCode !== 200) { done(new Error(res.statusCode + ' status code downloading ' + name)) return }