Skip to content

Commit

Permalink
fixup! src,win: add support for fetching arm64 node.lib
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocgreis committed Sep 18, 2019
1 parent 9426165 commit edec5b5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit edec5b5

Please sign in to comment.