Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppeteer deprecation/ can't find chrome locally #2864

Closed
1 task done
MikeyA-yo opened this issue Apr 2, 2024 · 0 comments
Closed
1 task done

puppeteer deprecation/ can't find chrome locally #2864

MikeyA-yo opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MikeyA-yo
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

i get this error when i try to run the code how do i enable it to run chrome locally
error: Could not find expected browser (chrome) locally. Run npm install to download the correct Chromium revision (982053).
at C:\Users\USER\Desktop\whatsapp-bot-test\node_modules\puppeteer\lib\cjs\puppeteer\node\Launcher.js:105:23

Expected behavior

i expected it to run and give me a qr code

Steps to Reproduce the Bug or Issue

i just installed whatsapp-web.js and tried running the example code: const { Client } = require('whatsapp-web.js');

const client = new Client();

client.on('qr', (qr) => {
// Generate and scan this code with your phone
console.log('QR RECEIVED', qr);
});

client.on('ready', () => {
console.log('Client is ready!');
});

client.on('message', msg => {
if (msg.body == '!ping') {
msg.reply('pong');
}
});

client.initialize();

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

windows , android whatsapp web.js, 1.23.0
node 21.5.0

Additional context

error message 100 | chromeExecutable = executablePathForChannel(channel);
101 | }
102 | else if (!executablePath) {
103 | const { missingText, executablePath } = resolveExecutablePath(this);
104 | if (missingText)
105 | throw new Error(missingText);
^
error: Could not find expected browser (chrome) locally. Run npm install to download the correct Chromium revision (982053).
at C:\Users\USER\Desktop\whatsapp-bot-test\node_modules\puppeteer\lib\cjs\puppeteer\node\Launcher.js:105:23

@MikeyA-yo MikeyA-yo added the bug Something isn't working label Apr 2, 2024
@alechkos alechkos closed this as completed Apr 2, 2024
Repository owner locked and limited conversation to collaborators Apr 2, 2024
@alechkos alechkos marked this as a duplicate of #1900 Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants