4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacOS CatalinaでPuppeteer動かない時の対処

Posted at

SideCarに釣られてアップデートしたMacOS CatalinaでPuppeteerがErrorを出したのでメモ

(node:69317) UnhandledPromiseRejectionWarning: Error: Protocol error (Runtime.callFunctionOn): Target closed.

対処法

node_modules/puppeteer/内のpackage.jsonのchromium_revisionを699988に変えた上で
node_modules/puppeteer/内でyarn run install or npm run install してください

$ vim node_modules/puppeteer/package.json

11行目辺り

node_modules/puppeteer/package.json
  "puppeteer": {
    "chromium_revision": "699988"
  },
$ cd node_modules/puppeteer
$ yarn run install
  or
$ npm run install

参考

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?