Closed robindz closed 4 years ago
Hi,
Please check this comment
@carcabot
Ok that solved that issue, but a new one has risen.
So, after installing node to v13.11.0 and installing puppeteer with npm i puppeteer puppeteer-extra puppeteer-extra-plugin-stealth
I know get this error:
pi@chaengpi:~/scripts/tiktok-signature $ node server.js
Error: Failed to launch the browser process!
/home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 1: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: �: not found
/home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 1: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: ELF: not found
/home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 2: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: p#: not found
/home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 3: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: p#: not found
/home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 4: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: @l�: not found
/home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 5: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: pX: not found
/home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 6: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 4: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: pX: not found
��q: not found
/home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: 7: /home/pi/scripts/tiktok-signature/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: Syntax error: "(" unexpected
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/home/pi/scripts/tiktok-signature/node_modules/puppeteer/lib/Launcher.js:750:14)
at Interface.<anonymous> (/home/pi/scripts/tiktok-signature/node_modules/puppeteer/lib/Launcher.js:739:50)
at Interface.emit (events.js:327:22)
at Interface.close (readline.js:424:8)
at Socket.onend (readline.js:202:10)
at Socket.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1201:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
I'm not sure if puppeteer is supported by linux arm versions.
Possible answer you can find here or here
@carcabot
Ok, I solved this by doing the following:
sudo apt-get install chromium-browser
index.js
, add executablePath: "/usr/bin/chromium-browser"
to this.options
After updating and installing node:
I run into a problem when I try running the server.js script.
I'm not getting much wiser from this error, do you perhaps know why it's causing this issue?