Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7182

chrome browser not findable by ubuntu?

$
0
0

enter image description here

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 ENOENT

How can I get this working?


Viewing all articles
Browse latest Browse all 7182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>