下午在用nodejs在linux上操作puppeteer/chromium/chrome
时报错如下:
-> # node search.js
count is 1
(node:15360) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/root/youtube/search/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/root/youtube/search/node_modules/puppeteer/lib/Launcher.js:750:14)
at Interface.<anonymous> (/root/youtube/search/node_modules/puppeteer/lib/Launcher.js:739:50)
at Interface.emit (events.js:228:7)
at Interface.close (readline.js:402:8)
at Socket.onend (readline.js:180:10)
at Socket.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queu