Estoy desarrollando un programa para enviar mensajes por whatsapp a través del módulo whatsapp-web.js, quiero hacer de mi programa un ejecutable, para esto estoy usando "pkg", sin embargo cuando genero el ejecutable me sale el siguiente mensaje.
Warning Cannot include directory %1 into executable. The directory must be distributed with executable as %2. %1: ..\node_modules\puppeteer\.local-chromium %2: path-to-executable/puppeteerYa copié la ruta donde se pide, aquí la pueden ver en vscode
Sin embargo, cuando ejecuto el ejecutable me sale esto:
C:\snapshot\romer\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 (C:\snapshot\romer\node_modules\puppeteer\lib\cjs\puppeteer\node\Launcher.js:105:23) at PuppeteerNode.launch (C:\snapshot\romer\node_modules\puppeteer\lib\cjs\puppeteer\node\Puppeteer.js:125:31) at Client.initialize (C:\snapshot\romer\node_modules\whatsapp-web.js\src\Client.js:95:39) at processTicksAndRejections (node:internal/process/task_queues:96:5) at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:65:3) at Function.runMain (pkg/prelude/bootstrap.js:1941:13) at node:internal/main/run_main_module:17:47Alguien sabe como solucionar este error? He buscado en foros pero no he visto nada que me ayude, mi código en Github: https://github.com/rromerov/Whatsapp-Web-Project/blob/main/codigo.js