Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在docker容器中,npm install wechaty,运行mybot报错:Failed to launch chrome! #1636

Closed
MalavitaC opened this issue Nov 7, 2018 · 3 comments

Comments

@MalavitaC
Copy link

MalavitaC commented Nov 7, 2018

root@1111f6b894f:/data# node myBot.js 
11:31:16 INFO Wechaty <default> start() v0.22.4 is starting...
11:31:16 ERR PuppetPuppeteerBridge start() exception: Error: Failed to launch chrome!
/node_modules/_wechaty@0.22.4@wechaty/node_modules/puppeteer/.local-chromium/linux-599821/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
@huan
Copy link
Member

huan commented Nov 7, 2018

You can use zixia/wechaty as your docker base image to fix this.

@MalavitaC
Copy link
Author

MalavitaC commented Nov 7, 2018

The problem has been solved.
Look: Issue #48

@huan
Copy link
Member

huan commented Nov 7, 2018

Good to hear that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants