What is the problem with the use of puppeteer?

on Ali CVM, the system is installed by Debian8.9,. Puppeteer is installed using the command of cnpm i puppeteer, and the installation is successful. There is a problem during the test. My test code is as follows:
const puppeteer = require ("puppeteer");

(async () = > {
let browser = await puppeteer.launch ({
executablePath:". / chromium/chrome.exe",
headless: false
});
const page = await browser.newPage ();
await page.goto (" http://music.163.com/");
await page.screenshot ({path: "music.png"});
browser.close ();
}) (); The following error occurs after
runs:
(node:23748) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to launch Chrome! Spawn. / chromium/chrome.exe ENOENT

TROUBLESHOOTING: https://github.com/GoogleChro.

(node:23748) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I would like to ask if you have encountered anything like this, and how to solve it? Thank you!

Aug.23,2021

in try catch , there should be a problem somewhere

Menu