You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!');
});
Is there an existing issue for this?
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
The text was updated successfully, but these errors were encountered: