Error: AWS lambda doesn't find the (correct) chromium browser.
START RequestId: 50e21a5f-c30b-400e-97d6-a0124de70d1c Version: $LATEST
--
2023-06-23T06:48:02.530Z 50e21a5f-c30b-400e-97d6-a0124de70d1c INFO Starting test run with SESSION ID: 6b9070a5-55a0-43e9-b2d3-2d3fb63d3ba9
2023-06-23T06:48:02.530Z 50e21a5f-c30b-400e-97d6-a0124de70d1c ERROR An exception occurred during judgement...
2023-06-23T06:48:02.530Z 50e21a5f-c30b-400e-97d6-a0124de70d1c ERROR Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (901912). at ChromeLauncher.launch (/var/task/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js:88:27) at async newPage (file:///var/task/index.js:28:19) at async Runtime.handler (file:///var/task/index.js:123:12)
2023-06-23T06:48:02.530Z 50e21a5f-c30b-400e-97d6-a0124de70d1c INFO [...]
2023-06-23T06:48:02.625Z 50e21a5f-c30b-400e-97d6-a0124de70d1c INFO Shutting down judge...
2023-06-23T06:48:02.625Z 50e21a5f-c30b-400e-97d6-a0124de70d1c INFO Judge is shut down...
Environment
chrome-aws-lambda
Version: "^10.1.0",puppeteer
/puppeteer-core
Version: "puppeteer-core": "^10.1.0"Expected Behavior
Puppeteer launching when AWS lambda starts.
Current Behavior
Error: AWS lambda doesn't find the (correct) chromium browser.
The code
package.json
:index.js
: