MhankBarBar / termux-wabot

........
GNU General Public License v3.0
254 stars 319 forks source link

node-pre-gyp error! #184

Open jhondesignee opened 1 year ago

jhondesignee commented 1 year ago

I got this error when I ran bash install.sh

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.2/canvas-v2.10.2-node-v108-android-unknown-arm.tar.gz

EDIT I solve the problem with these modifications in install.sh file:

#!/usr/bin/bash

pkg install xorgproto
^^^^^^^^^^^^^^^^^^^^^
apt-get update
apt-get upgrade
apt-get install -y nodejs libwebp ffmpeg wget tesseract
wget -O ~/../usr/share/tessdata/ind.traineddata "https://github.com/tesseract-ocr/tessdata/blob/master/ind.traineddata?raw=true"
npm i --build-from-source
      ^^^^^^^^^^^^^^^^^^^

echo "[*] All dependencies have been installed, please run the command \"npm start\" to immediately start the script"