File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export async function getNode(
97
97
// Download from nodejs.org
98
98
//
99
99
if ( ! downloadPath ) {
100
- info = await getInfoFromDist ( versionSpec ) ;
100
+ info = await getInfoFromDist ( versionSpec , arch ) ;
101
101
if ( ! info ) {
102
102
throw new Error (
103
103
`Unable to find Node version '${ versionSpec } ' for platform ${ osPlat } and architecture ${ osArch } .`
@@ -192,10 +192,11 @@ async function getInfoFromManifest(
192
192
}
193
193
194
194
async function getInfoFromDist (
195
- versionSpec : string
195
+ versionSpec : string ,
196
+ arch : string = os . arch ( )
196
197
) : Promise < INodeVersionInfo | null > {
197
198
let osPlat : string = os . platform ( ) ;
198
- let osArch : string = translateArchToDistUrl ( os . arch ( ) ) ;
199
+ let osArch : string = translateArchToDistUrl ( arch ) ;
199
200
200
201
let version : string ;
201
202
@@ -219,6 +220,7 @@ async function getInfoFromDist(
219
220
return < INodeVersionInfo > {
220
221
downloadUrl : url ,
221
222
resolvedVersion : version ,
223
+ arch : osArch ,
222
224
fileName : fileName
223
225
} ;
224
226
}
You can’t perform that action at this time.
0 commit comments