next-api-og-image icon indicating copy to clipboard operation
next-api-og-image copied to clipboard

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

Open guhyeon opened this issue 3 years ago • 0 comments

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

guhyeon avatar Aug 06 '22 15:08 guhyeon