Skip to content

Commit eebf452

Browse files
authored
fix: add support for relative install paths to BrowserFetcher (#7613)
This patch fixes the BrowserFetcher._getFolderPath method so that it supports relative download paths using PUPPETEER_DOWNLOAD_PATH or npm config Issues: #7592
1 parent 26145e9 commit eebf452

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/BrowserFetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export class BrowserFetcher {
419419
* @internal
420420
*/
421421
_getFolderPath(revision: string): string {
422-
return path.join(this._downloadsFolder, `${this._platform}-${revision}`);
422+
return path.resolve(this._downloadsFolder, `${this._platform}-${revision}`);
423423
}
424424
}
425425

0 commit comments

Comments
 (0)