question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Puppeteer not working with node 14

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version:3.0.1
  • Platform / OS version:docker (FROM:node:14.0.0-buster)
  • URLs (if applicable):
  • Node.js version: 14.0.0

What steps will reproduce the problem?

Please include code that reproduces the issue.

  1. Upgrade node image from 13.13.0 -> 14.0.0
  2. Run same codebase (puppeteer.launch())

What is the expected result? code runs without issues, just like on 13.13.0

What happens instead? Error: Failed to launch the browser process! spawn /opt/app/node_modules/puppeteer/.local-chromium/linux-737027/chrome-linux/chrome ENOENT

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:18
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
AviVahlcommented, Apr 30, 2020

Fixed by Node 14.1.0. Verified on Linux/Mac/Windows.

5reactions
jsoversoncommented, Apr 22, 2020

It looks like it’s a problem with extraction. A temporary workaround is to extract the downloaded chromium manually:

$ mv node_modules/puppeteer/.local-chromium/mac-737027 node_modules/puppeteer/.local-chromium/mac-737027.bak 
$ unzip node_modules/puppeteer/.local-chromium/chrome-mac.zip -d node_modules/puppeteer/.local-chromium/mac-737027
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Puppeteer
The most common cause is a bug in Node.js v14.0.0 which broke extract-zip , the module Puppeteer uses to extract browser downloads into...
Read more >
node.js - Puppeteer not working NodeJS 17 on Arch Linux
I've started working with Puppeteer and for some reason I cannot get it to work on my box. This error seems to be...
Read more >
Puppeteer - npm
Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol.
Read more >
Runtime versions using Node.js and Puppeteer
Explains the versions of canary runtimes, libraries, and configuration information.
Read more >
How to use Puppeteer inside a Docker container
If we use the Docker images for Node.js v14 LTS Gallium, when installing ... which can have compatibility issues with the latest Puppeteer....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found