공부/Node.js

Ubuntu 24.04 LTS 이상에서 Failed to launch the browser process 에러 해결하기

Kochanhyun 2025. 1. 22. 02:06
반응형

1. Puppeteer 의존성 패키지들을 설치한다.

sudo apt-get install libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb

 

2. page.goto() 함수에 no sandbox 인자를 추가해준다.

page.goto(targeturl, { args: ['--no-sandbox', '--disable-setuid-sandbox'] });

 

참고 : 

https://github.com/cypress-io/cypress-documentation/issues/5816

 

Package 'libasound2' has no installation candidate on Ubuntu 24.04 · Issue #5816 · cypress-io/cypress-documentation

Subject Getting Started > Installing Cypress > Linux Prerequisites > Ubuntu/Debian Description Issue Following the instructions Getting Started > Installing Cypress > Linux Prerequisites > Ubuntu/D...

github.com

 

반응형