I am trying to hit an api which uses puppeteer, it basically has a function that fetches me discord users, not very well versed with puppeteer so mind my lack of explanation, did some research and found some solution as installing chromium manually, did that, running the puppeteer to run chromium with headless still no luck it prompts me with Command '/usr/bin/chromium-browser' requires the chromium snap to be installed, I am using WSL to run this and seems like it's not really supported with WSL,
const browser = await puppeteer.launch({
//only for testing
headless: true,
// for testing at - ibad
executablePath: '/usr/bin/chromium-browser',
args: [
'--no-sandbox',
'--start-maximized'
],
ignoreHTTPSErrors: true
});
this is the launch code for puppeteer, the message that I get in the api response:
"message": "Failed to launch the browser process!\n\nCommand '/usr/bin/chromium-browser' requires the chromium snap to be installed.\nPlease install it with:\n\nsnap install chromium\n\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n",,
any help would be appreciated, new to this puppeteer stuff thanks!