I'm working on chromeos with ubuntu Linux. I'm trying to run puppeteer-core using the installed chrome. I looked in chrome://version/ to find the executable path (screenshot).
Because I need to have a path to the executable file , I installed Google Chrome after downloading from the Google site with:
dpkg -i google-chrome-stable_current_amd64.deb I can now see both chrome and google-chrome in the opt/Google/chrome folder but when I type which chrome or run google-chrome or chrome, there is no response and it does not open. Also when I run :
const puppeteer = require("puppeteer-core");async function fetchHTML(url) {try { const browser = await puppeteer.launch({ headless: false, executablePath: "/opt/google/chrome", .....I get a:
Error fetching HTML: Error: Failed to launch the browser process! spawn /opt/google/chrome/chrome ENOENTHow can I get this working?
