Closed ChirayuShah closed 6 months ago
Not a library related bug
Not a library related bug
It is a library related bug because the library is using old version of pupetter. if we use latest version of puppeteer then it is installing the chrome in arm processor based linux. how to make the library use latest version of puppeteer?
@ChirayuShah
how to make the library use latest version of puppeteer?
It can be done using google search
Did you got the soln?
no i did not get the solution the whatsapp api is not working in arm based processor in amazon linux
Sent from Gmail Mobile
On Wed, 7 Feb 2024 at 5:58 PM, Muhammed Mukhthar CM < @.***> wrote:
Did you got the soln?
— Reply to this email directly, view it on GitHub https://github.com/pedroslopez/whatsapp-web.js/issues/2726#issuecomment-1931944611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHEG5DJXD3BMTVAEYOQF3YLYSNXN7AVCNFSM6AAAAABB2WFPK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRHE2DINRRGE . You are receiving this because you were mentioned.Message ID: @.***>
Is there an existing issue for this?
Describe the bug
When we install whatsapp web using $ npm i whatsapp-web.js It is installing whatsapp api and also puppeteer , but in putppeteer it is not installing chome as the processor is arm based.
admin@ip-172-31-11-216:~$ npm i whatsapp-web.js npm WARN deprecated puppeteer@13.7.0: < 21.3.7 is no longer supported
added 101 packages, and audited 328 packages in 6s
32 packages are looking for funding run
npm fund
for details3 moderate severity vulnerabilities
To address all issues (including breaking changes), run: npm audit fix --force
Run
npm audit
for details. admin@ip-172-31-11-216:~$ node demoapp.js (node:37638) [DEP0040] DeprecationWarning: Thepunycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created) /home/admin/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:105 throw new Error(missingText); ^Error: Could not find expected browser (chrome) locally. Run
npm install
to download the correct Chromium revision (982053). at ChromeLauncher.launch (/home/admin/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:105:23) at PuppeteerNode.launch (/home/admin/node_modules/puppeteer/lib/cjs/puppeteer/node/Puppeteer.js:125:31) at Client.initialize (/home/admin/node_modules/whatsapp-web.js/src/Client.js:107:39) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)Node.js v21.5.0 admin@ip-172-31-11-216:~$
The puppeteer version @13.7.0 is not supporting chrome browser in arm based processor.
How to make whatsapp api work in arm based processor?
Expected behavior
WhatsApp API should work in ARM based processor also.
Steps to Reproduce the Bug or Issue
Start an arm based processor server in cloud. try installing api using below code:
admin@ip-172-31-11-216:~$ npm i whatsapp-web.js npm WARN deprecated puppeteer@13.7.0: < 21.3.7 is no longer supported
added 101 packages, and audited 328 packages in 6s
32 packages are looking for funding run
npm fund
for details3 moderate severity vulnerabilities
To address all issues (including breaking changes), run: npm audit fix --force
Run
npm audit
for details. admin@ip-172-31-11-216:~$ node demoapp.js (node:37638) [DEP0040] DeprecationWarning: Thepunycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created) /home/admin/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:105 throw new Error(missingText); ^Error: Could not find expected browser (chrome) locally. Run
npm install
to download the correct Chromium revision (982053). at ChromeLauncher.launch (/home/admin/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:105:23) at PuppeteerNode.launch (/home/admin/node_modules/puppeteer/lib/cjs/puppeteer/node/Puppeteer.js:125:31) at Client.initialize (/home/admin/node_modules/whatsapp-web.js/src/Client.js:107:39) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)Node.js v21.5.0 admin@ip-172-31-11-216:~$
Relevant Code
npm i whatsapp-web.js
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Amazon Linux 2023, Arm Based Processor rest all latest version
Additional context
No response