docker-magento
docker-magento copied to clipboard
bin/grunt exec "error while loading shared libraries"
Description
after installing a new package with grunt. and running bin/grunt exec
the command returns an error
/var/www/html/node_modules/.../node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
the TROUBLESHOOTING link provides a solution for Linux users to Getting headless Chrome up and running in Docker by To fix, you'll need to install the missing dependencies and the latest Chromium package in your Dockerfile I would like to know if this container shouldn't be part of this project as it already supports grunt or is it out of scope and it all depends on which package you installed.
Steps To Reproduce
- add any package by
npm install PACKAGE_NAME --save-dev
- run
bin/grunt exec
Expected Result
bin/grunt exec
will succeed
Actual Result
bin/grunt exec
fails with an error
/var/www/html/node_modules/.../node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory