Skip to content

Commit

Permalink
fix: fix BrowserFetcher._getFolderPath to support relative install paths
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: puppeteer#7592
  • Loading branch information
nadir committed Sep 29, 2021
1 parent 7069cfe commit 8215c93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node/BrowserFetcher.ts
Expand Up @@ -419,7 +419,9 @@ export class BrowserFetcher {
* @internal
*/
_getFolderPath(revision: string): string {
return path.join(this._downloadsFolder, `${this._platform}-${revision}`);
return path.resolve(
path.join(this._downloadsFolder, `${this._platform}-${revision}`)
);
}
}

Expand Down

0 comments on commit 8215c93

Please sign in to comment.