@@ -188,7 +188,7 @@ async function install (fs, gyp, argv) {
188188 const installVersionPath = path . resolve ( devDir , 'installVersion' )
189189 await Promise . all ( [
190190 // need to download node.lib
191- ...( win ? [ downloadNodeLib ( ) ] : [ ] ) ,
191+ ...( win ? downloadNodeLib ( ) : [ ] ) ,
192192 // write the "installVersion" file
193193 fs . promises . writeFile ( installVersionPath , gyp . package . installVersion + '\n' ) ,
194194 // Only download SHASUMS.txt if we downloaded something in need of SHA verification
@@ -228,10 +228,10 @@ async function install (fs, gyp, argv) {
228228 log . verbose ( 'checksum data' , JSON . stringify ( expectShasums ) )
229229 }
230230
231- async function downloadNodeLib ( ) {
231+ function downloadNodeLib ( ) {
232232 log . verbose ( 'on Windows; need to download `' + release . name + '.lib`...' )
233233 const archs = [ 'ia32' , 'x64' , 'arm64' ]
234- return Promise . all ( archs . map ( async ( arch ) => {
234+ return archs . map ( async ( arch ) => {
235235 const dir = path . resolve ( devDir , arch )
236236 const targetLibPath = path . resolve ( dir , release . name + '.lib' )
237237 const { libUrl, libPath } = release [ arch ]
@@ -264,7 +264,7 @@ async function install (fs, gyp, argv) {
264264 } ) ,
265265 fs . createWriteStream ( targetLibPath )
266266 )
267- } ) )
267+ } )
268268 } // downloadNodeLib()
269269 } // go()
270270
0 commit comments