简体   繁体   中英

puppeteer can't run open the url in a simple code

I have this code:

const puppeteer = require("puppeteer");

(async () => {
  const browser = await puppeteer.launch({
    headless: false,
    ignoreDefaultArgs: ["--disable-extensions"],
  });


  const page = await browser.newPage(); 
  await page.goto("https://google.com");

  await browser.close();
})(); 

when I run it, the chromium browser opens, but:

在此处输入图像描述

Thank you !

I downgraded my puppeteer version to 18.1.0 and runned ly code again and it worked as I expected, Thank you!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM