puppeteer on Chrome!

538 views
Skip to first unread message

Sukumar Ghorai

unread,
Sep 10, 2019, 1:59:52 PM9/10/19
to Chromium OS Discussion
Hi,

I am new to puppeteer on chromebook and need some help.

Ref. https://github.com/GoogleChrome/puppeteer 
 
 

Issue: ‘npm init’ does not create dependencies as puppeteer


hence not able to lunch chrome and error as follows: 
localhost /usr/local/lib/node_modules/puppeteer # node test.js
(node:19830) UnhandledPromiseRejectionWarning: Error: Failed to launch chrome!
/usr/local/lib/node_modules/puppeteer/.local-chromium/linux-674921/chrome-linux/chrome: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

Would you pls suggest some email-list to ask this question, pls?


Thx & rgds,

Sukumar


Mike Frysinger

unread,
Sep 10, 2019, 2:36:49 PM9/10/19
to sukumar...@gmail.com, Chromium OS Discussion
are you using Crostini or are you in dev mode and running directly in the shell ?
-mike

--
--
Chromium OS Discussion mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-discuss

Sukumar Ghorai

unread,
Sep 10, 2019, 2:59:14 PM9/10/19
to Mike Frysinger, Chromium OS Discussion
I am using dev mode and running puppeteer/js directly in the shell.
This is run some browser test.

Thx & rgds,
Sukumar

Mike Frysinger

unread,
Sep 10, 2019, 3:03:45 PM9/10/19
to Sukumar Ghorai, Chromium OS Discussion
unfortunately that's unlikely to work or be worth your time making it work.  CrOS doesn't use X, so we don't ship any X11 libs, nor do we provide binpkgs to install them.

it would be easier to use Crouton (for older devices) or Crostini (for newer systems) where you can install X libs and have an X<->Wayland bridge.
-mike

Sukumar Ghorai

unread,
Sep 10, 2019, 3:20:27 PM9/10/19
to Mike Frysinger, Chromium OS Discussion
Hi Mike, 
Would you pls share a link to guide on create a X<->Wayland bridge?

Thx & rgds,
Sukumar

Reply all
Reply to author
Forward
0 new messages