-
CentOS 에서 puppeteer 실행시 libxkbcommon.so.0를 못찾을때 처리 방법LINUX 2021. 12. 21. 02:14728x90
CentOS 에서 puppeteer 실행시 libxkbcommon.so.0를 못찾을때 처리 방법
CentOS에서 node 기반의 puppeteer를 실생하 다음과 같은 오류를 만났다
발생 에러 로그
(node:16300) UnhandledPromiseRejectionWarning: Error: Failed to launch the brows er process! /applications/service/teamstokengen/node_modules/puppeteer/.local-chromium/linux -901912/chrome-linux/chrome: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md at onClose (/applications/service/teamstokengen/node_modules/puppeteer/lib/c js/puppeteer/node/BrowserRunner.js:203:20) at Interface.<anonymous> (/applications/service/teamstokengen/node_modules/p uppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:68) at Interface.emit (events.js:326:22) at Interface.close (readline.js:416:8) at Socket.onend (readline.js:194:10) at Socket.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1223:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) (node:16300) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termin ate the node process on unhandled promise rejection, use the CLI flag `--unhandl ed-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejecti ons_mode). (rejection id: 1) (node:16300) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr ecated. In the future, promise rejections that are not handled will terminate th e Node.js process with a non-zero exit code.
해결방법으로는 다음 모듈을 설치하면된다.
$ yum install libxkbcommon-x11
원인으로는 x11 라이브러리 부재 문제로 실행이 안되었다.
참고 자료
728x90'LINUX' 카테고리의 다른 글
Redhat Repository 설정하기 (0) 2022.10.12 redhat8에서 mysql 실행시 libtinfo.so.5 를 못 찾을때 확인 & 처리 (0) 2022.10.06 Linux] find 명령어를 이용해서 오래된 디렉토리 중 1개만 지우기 (0) 2021.07.07 서버시간을 KST로 변경하기 (0) 2019.11.15 vim upgrade or 업그레이드 내역 확인 하기! (0) 2019.11.12