Skip to content

puppeteer error #2

@whoisyourDaddyy

Description

@whoisyourDaddyy

I got an error. Could u help me?

Error: Could not find Chrome (ver. 126.0.6478.63). This can occur if either

  1. you did not perform an installation before running the script (e.g. npx puppeteer browsers install chrome) or
  2. your cache path is incorrectly configured (which is: /Users/cc/.cache/puppeteer).
    For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
    at ChromeLauncher.resolveExecutablePath (/Users/cc/IdeaProjects/InstaDM/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:295:27)
    at ChromeLauncher.executablePath (/Users/cc/IdeaProjects/InstaDM/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:209:25)
    at ChromeLauncher.computeLaunchArguments (/Users/cc/IdeaProjects/InstaDM/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:89:37)
    at ChromeLauncher.launch (/Users/cc/IdeaProjects/InstaDM/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:70:39)
    at ChromeLauncher.launch (/Users/cc/IdeaProjects/InstaDM/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:43:22)
    at PuppeteerNode.launch (/Users/cc/IdeaProjects/InstaDM/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js:132:31)
    at PuppeteerExtra.launch (/Users/cc/IdeaProjects/InstaDM/node_modules/puppeteer-extra/dist/index.cjs.js:128:41)
    at async loginInstagramFunc (/Users/cc/IdeaProjects/InstaDM/app.js:289:23)
    /Users/cc/IdeaProjects/InstaDM/app.js:381
    await browser.close();
    ^

TypeError: Cannot read properties of undefined (reading 'close')
at loginInstagramFunc (/Users/cc/IdeaProjects/InstaDM/app.js:381:23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions