Skip to content

Commit 05753be

Browse files
committed
fix: fallback to download when no chrome paths exist
Fixes #247
1 parent 3f4a34e commit 05753be

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/core/src/resolveConfig.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,13 @@ export const resolveUserConfig: (userConfig: UserConfig) => Promise<ResolvedUser
183183
// if user is using the default chrome binary options
184184
if (config.chrome.useSystem && !foundChrome) {
185185
// we'll try and resolve their local chrome
186-
const chromePath = Launcher.getFirstInstallation()
186+
let chromePath = false
187+
try {
188+
chromePath = Launcher.getFirstInstallation()
189+
}
190+
catch (e) {
191+
logger.debug('Chrome launcher failed to get a path.', e)
192+
}
187193
if (chromePath) {
188194
logger.info(`Using system Chrome located at: \`${chromePath}\`.`)
189195
// set default to puppeteer core

0 commit comments

Comments
 (0)