Skip to content

Commit

Permalink
fix: add support for relative install paths to BrowserFetcher (#7613)
Browse files Browse the repository at this point in the history
This patch fixes the BrowserFetcher._getFolderPath method so that it supports relative download paths using PUPPETEER_DOWNLOAD_PATH or npm config

Issues: #7592
  • Loading branch information
nadir committed Sep 29, 2021
1 parent 26145e9 commit eebf452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/BrowserFetcher.ts
Expand Up @@ -419,7 +419,7 @@ export class BrowserFetcher {
* @internal
*/
_getFolderPath(revision: string): string {
return path.join(this._downloadsFolder, `${this._platform}-${revision}`);
return path.resolve(this._downloadsFolder, `${this._platform}-${revision}`);
}
}

Expand Down

0 comments on commit eebf452

Please sign in to comment.