文章目录
- 错误
- 解决方法
错误
Could not find Chrome (ver. 119.0.6045.105). This can occur if either\n 1. you did not perform an installation before running the script (e.g. npx puppeteer browsers install chrome
) or\n 2. your cache path is incorrectly configured (which is: /home/user/.cache/puppeteer).\nFor (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
解决方法
npx puppeteer browsers install chrome@119.0.6045.105