Zain-ul-din / whatsapp-ai-bot

This is a WhatsApp AI bot that uses various AI models, including Gemini, GPT, DALL-E, and StabilityAI, to generate responses to user input.
https://wa-ai-seven.vercel.app/
MIT License
160 stars 88 forks source link

Command failed with exit code 1. #49

Closed ZeanArd closed 1 week ago

ZeanArd commented 1 week ago

[1/3] ⠁ puppeteer [2/3] ⠁ puppeteer error /root/WhatsApp-Ai-bot/node_modules/whatsapp-web.js/node_modules/puppeteer: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /root/WhatsApp-Ai-bot/node_modules/whatsapp-web.js/node_modules/puppeteer Output: The chromium binary is not available for arm64. If you are on Ubuntu, you can install with:

sudo apt install chromium

sudo apt install chromium-browser

/root/WhatsApp-Ai-bot/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119 throw new Error(); ^

Error at /root/WhatsApp-Ai-bot/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119:27 at FSReqCallback.oncomplete (node:fs:198:21)

Node.js v22.3.0

✔ dependencies has been installed initializing server yarn run v1.22.22 warning ../package.json: No license field $ vite-node ./src/index.ts node:internal/dns/promises:86 this.reject(new DNSException(err, 'getaddrinfo', this.hostname)); ^

Error: getaddrinfo ENOTFOUND localhost at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:internal/dns/promises:86:17) { errno: -3007, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'localhost' }

Node.js v22.3.0 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Zain-ul-din commented 1 week ago

if you look into the error there is a solution inside it,

If you are on Ubuntu, you can install with:

sudo apt install chromium
sudo apt install chromium-browser
ZeanArd commented 1 week ago

Done in 22.93s. ✔ dependencies has been installed initializing server yarn run v1.22.22 warning ../package.json: No license field $ vite-node ./src/index.ts node:internal/dns/promises:86 this.reject(new DNSException(err, 'getaddrinfo', this.hostname)); ^

Error: getaddrinfo ENOTFOUND localhost at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:internal/dns/promises:86:17) { errno: -3007, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'localhost' }

Node.js v22.3.0 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Just the same

Zain-ul-din commented 1 week ago

fixed?

ZeanArd commented 1 week ago

no, still same

Zain-ul-din commented 1 week ago

have you tried on GitHub codespace?

ZeanArd commented 1 week ago

It works, meaning my termux does not support it 😅, sorry for bothering you 😅