Install Puppeteer

Puppeteer is a library to headless Chrome API. In short, most things that you can do manually in the browser can be achieved with a program using Puppeteer. By default, installing Puppeteer on a Scalingo application fails because the X11 library are not included in Scalingo base image. The error message is:

[Nest] 31 - 10/24/2019, 4:08:50 PM [ExceptionsHandler] Failed to launch chrome!
/app/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: cannot open shared object file: No such file or directory

Install Puppeteer on a Scalingo Application

To install Puppeteer on a Scalingo application, you need to make use of this buildpack developed by the community. Such a buildpack should be used as part of a multi-buildpack.

$ echo '' >> .buildpacks
$ echo '' >> .buildpacks
$ git add .buildpacks
$ git commit -m 'Add multi-buildpack'

mode_edit Suggest edits