installation uses puppeteer
to find that it executes to const page = await browser.newPage (); the code for this step will not go to next week. After taking a look at it using headless: false, the browser does open it. The
console also reported no error.
I don"t know what happened
const puppeteer = require("puppeteer");
(async () => {
const browser = await puppeteer.launch({
headless: false
});
const page = await browser.newPage();
//
await page.goto("https://www.douban.com/");
await page.screenshot({
path: "example.png"
});
await browser.close();
})();