'how to solve failed to launch the browser process on whatsapp-web.js
I'm using centos 8 and nodejs 16,I installed nodejs version 16,When I want to run an example like the code below,I get an error:
WHATSAPP WEBJS: Github Whatsapp webjs
in app.js
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();
Solution 1:[1]
I think your OS is missing low-level librarie expected to be installed which is libnss3.so
Try to install it :
sudo yum update
sudo yum -y install nss
This should get libnss3.so to be installed and present on your machine.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |

