realcoloride / node_characterai

Unofficial Character AI wrapper for node.
https://beta.character.ai/
341 stars 72 forks source link

error while #135

Closed gamersindo1223 closed 7 months ago

gamersindo1223 commented 7 months ago

[node_characterai] Puppeteer - This is an experimental feature. Please report any issues on github. /root/rest-api/node_modules/@puppeteer/browsers/lib/cjs/launch.js:262 reject(new Error([ ^

Error: Failed to launch the browser process! /root/.cache/puppeteer/chrome/linux-1108766/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

TROUBLESHOOTING: https://pptr.dev/troubleshooting

at Interface.onClose (/root/rest-api/node_modules/@puppeteer/browsers/lib/cjs/launch.js:262:24)

Basically the error above appeared only on my vps, but when I ran the same code on my another vps (azure) i didn't get this error
gamersindo1223 commented 7 months ago

nvm need to install some packages apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev