question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (901912).

See original GitHub issue

Error: Could not find expected browser (chrome) locally. Run npm install to download the correct Chromium revision (901912).

when build example and start, errors are occurred. ‘npm run dev’ is ok, but ‘npm run build’ and ‘npm run start’ has problem.

reproduce steps

  1. clone this project
  2. npm install
  3. cd example && npm install

after I encountered errors bellow `It looks like you’re trying to use TypeScript but do not have the required package(s) installed.

Please install @types/react by running:`

so i installed @types/react and upgrade next, react 4. npm install --save-dev @types/react && npm install next@latest && npm upgrade react@latest react-dom@latest

  1. npm build && npm start
  2. browser open and go to url http://localhost:3000/api/basic?myQueryParam=asdf

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
65536williamcommented, Sep 15, 2022

Serving my Next.js app on DigitalOcean, I’m getting this error after updating to 4.2.2:

Error: Failed to launch the browser process! spawn /usr/bin/google-chrome ENOENT
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
  at onClose (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:197:20)
  at ChildProcess.<anonymous> (/workspace/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:189:85)
  at ChildProcess.emit (node:events:513:28)
  at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
  at onErrorNT (node:internal/child_process:478:16)
  at processTicksAndRejections (node:internal/process/task_queues:83:21)
1reaction
neg4ncommented, Sep 13, 2022

Hey folks @guhyeon @mvandergrift @kamenskiyyyy

https://github.com/neg4n/next-api-og-image/releases/tag/4.2.2 🚀

Thanks for your contributions, feel free to continue the topic if problem still persists 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find expected browser chrome locally - Stack Overflow
8", It gives this error: Error: Could not find expected browser (chrome) locally. Run npm install to download the correct Chromium revision ( ......
Read more >
Could not find expected browser (chrome) locally. Run npm ...
Run npm install to download the correct Chromium revision (938248). When using serverless-esbuild plugin with puppeteer.
Read more >
Puppeteer.js Error: Could not find expected browser (chrome ...
Error : Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (1022525).
Read more >
“Could not find expected browser (chrome) locally. Run `npm ...
Run `npm install` to download the correct Chromium revision (901912). Error: Could not find expected browser (chrome) locally. Run `npm install` to download...
Read more >
Puppeteer - npm
A high-level API to control headless Chrome over the DevTools Protocol. ... and puppeteer-core will not download Chromium when installed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found