Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

523
Views
Cómo agregar el paquete faltante al archivo exe en Javascript con pkg

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/puppeteer

Ya copié la ruta donde se pide, aquí la pueden ver en vscode

ingrese la descripción de la imagen aquí

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:47

Alguien 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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!