Skip to content

Commit edec5b5

Browse files
committed
fixup! src,win: add support for fetching arm64 node.lib
1 parent 9426165 commit edec5b5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/install.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,15 @@ function install (fs, gyp, argv, callback) {
323323

324324
req.on('error', done)
325325
req.on('response', function (res) {
326-
if (res.statusCode !== 200) {
327-
if (res.statusCode === 404 && arch === 'arm64') {
326+
if (res.statusCode === 404) {
327+
if (arch === 'arm64') {
328328
// Arm64 is a newer platform on Windows and not all node distributions provide it.
329-
log.verbose(res.statusCode + ' status code downloading ' + name)
330-
return
329+
log.verbose(`${name} was not found in ${libUrl}`)
330+
} else {
331+
log.warn(`${name} was not found in ${libUrl}`)
331332
}
333+
return
334+
} else if (res.statusCode !== 200) {
332335
done(new Error(res.statusCode + ' status code downloading ' + name))
333336
return
334337
}

0 commit comments

Comments
 (0)