UNPKG

@cityssm/puppeteer-launch

Version:

Launch Puppeteer, falling back to system browsers when the cached ones aren't working or aren't available.

13 lines (9 loc) 306 B
#!/usr/bin/env node /* eslint-disable no-console */ import { installChromeBrowser } from './installers.js' try { await installChromeBrowser() console.log('✔️ Chrome browser installed successfully') } catch (error) { console.error('❌ Error installing Chrome browser:', error) }