강의

멘토링

커뮤니티

Inflearn Community Q&A

ssa41414839's profile image
ssa41414839

asked

Web Crawling with Node.js

5-6. Mouse Operation

Failed to luach chrome

Written on

·

425

0

  선생님, herorku라는 배포 서비스를 이용해서 배포 후 실행을 해봤는데 다음과 사진과 같은 에러가 떠요 로컬에선 잘되는데 배포한 버전은 저런 에러가 떠요

Error: Failed to launch chrome!
2019-12-02T03:37:41.850808+00:00 app[web.1]: /app/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

javascriptpuppeteernodejs웹-크롤링

Answer 1

0

zerocho님의 프로필 이미지
zerocho
Instructor

heroku의 경우 chrome webdriver가 설치되어 있지 않습니다. AWS같은 곳에서 직접 chrome webdriver를 설치하셔야 합니다.

heroku에서 하시려면 https://elements.heroku.com/buildpacks/jontewks/puppeteer-heroku-buildpack

이런게 있는 것은 봤는데 제대로 작동하는지는 잘 모르겠습니다.

ssa41414839's profile image
ssa41414839

asked

Ask a question