deno-puppeteer icon indicating copy to clipboard operation
deno-puppeteer copied to clipboard

Won't run on an M2 MacBook Air

Open marktyers opened this issue 8 months ago • 1 comments

Simple example:

import puppeteer from 'https://deno.land/x/[email protected]/mod.ts'

const args = [`--window-size=${800},${600 + 74}`]
const browser = await puppeteer.launch({ headless: true, slowMo: 50, args })
const page = await browser.newPage()
await page.goto('https://google.com')
await page.screenshot({ path: 'example.png' })

await browser.close()

When run I get the error:

% deno run -A --unstable simple.spec.js
error: Uncaught (in promise) Error: Bad CPU type in executable (os error 86)
    this.proc = Deno.run({
                     ^
    at opRun (ext:runtime/40_process.js:46:14)
    at Object.run (ext:runtime/40_process.js:132:15)
    at BrowserRunner.start (https://deno.land/x/[email protected]/src/deno/BrowserRunner.ts:64:22)
    at ChromeLauncher.launch (https://deno.land/x/[email protected]/src/deno/Launcher.ts:108:12)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async file:///Users/x/simple.spec.js:4:17

marktyers avatar Oct 27 '23 10:10 marktyers