Error: Failed to launch the browser process!
See original GitHub issuehi, i am writing a report. this is in repl.it, and i do have all dependencies, even the dependencies’ dependencies installed. what do I do? only use code snippet:
client.on('message', msg => {
if (msg.content.startsWith('\`\`\`html') && msg.content.endsWith('\`\`\`')) {
nodeHtmlToImage({
output: 'image.png',
html: msg.content.slice(7, msg.content.length - 3)
})
.then(() =>
msg.channel.send(" ", {files: ["image.png"]})
)
}
});
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Error: Failed to launch the browser process puppeteer
What worked for me was: let browser = await puppeteer.launch({ executablePath: '/usr/bin/chromium-browser', args: [ '--disable-gpu', '--disable ...
Read more >[Bug]: Failed to launch the browser process! #7917 - GitHub
An error is thrown when I use the following code! const browser = await puppeteer.launch({ headless: true });.
Read more >Troubleshooting - Puppeteer
This means that the browser was downloaded but failed to be extracted correctly. The most common cause is a bug in Node.js v14.0.0...
Read more >Failed to launch the browser process! spawn puppeteer Code ...
1. // Puppeteer Error on ubuntu 100% Correct Solution by Vivek ; 2. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ; 3. sudo apt ...
Read more >Puppeteer - Failed to launch the browser process! - DietPi
Puppeteer - Failed to launch the browser process! ... There seems to be a syntax error in one of the script you are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ZimberlyTheIrken can you confirm the solution proposed by @fiantinangon (thank you 👍) fix your issue?
const image = await nodeHtmlToImage({ html: template.receipt, content: { transaction, name: req.query.name }, puppeteerArgs: [‘–no-sandbox’] });
You can add
puppeteerArgs: ['--no-sandbox']
to fix this issue