file:///home/ec2-user/pup/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js:272
reject(new Error([
^
Error: Failed to launch the browser process!
/home/ec2-user/.cache/puppeteer/chrome/linux-1095492/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://pptr.dev/troubleshooting
at onClose (file:///home/ec2-user/pup/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js:272:20)
at Interface.<anonymous> (file:///home/ec2-user/pup/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js:260:24)
at Interface.emit (node:events:524:35)
at Interface.close (node:internal/readline/interface:534:10)
at Socket.onend (node:internal/readline/interface:260:10)
at Socket.emit (node:events:524:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v19.7.0
libatkをインストール
sudo apt install -y libatk1.0-0