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

234
Views
¿Cómo habilitar un módulo de kit en este script JS?
// Name: Random Video From YouTube Channel // Description: Open a random video from a specific YouTube Channel // Author: Monica Powell // Twitter: @indigitalcolor `` import "@johnlindquist/kit" let channelName = await arg("YouTube Channel Name (eg, yogawithadriene):") let videos = await scrapeSelector( `https://www.youtube.com/c/${channelName}/videos`, "a#video-title", el => ({ name: el.innerText, value: el.href, }) ) let randomVideo = videos[Math.floor(Math.random() * videos.length)] exec(`open "${randomVideo.value}"`)

Básicamente, se supone que este script le indicará que escriba el nombre de un canal de YouTube. Después de eso, debería reproducir automáticamente un video aleatorio de ese canal que especificó. Sin embargo, no estoy seguro de cómo ejecutar este script. Sigue arrojando errores. Tal vez, solo puede ejecutarse con un software de kit de la siguiente manera, pero parece ser solo para MacOS. https://www.scriptkit.com/ Actualmente, el error que recibo es el siguiente.

 c:\RandomVideo>node RandomVideo.js node:internal/errors:465 ErrorCaptureStackTrace(err); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@johnlindquist/kit' imported from c:\RandomVideo\RandomVideo.js ←[90m at new NodeError (node:internal/errors:372:5)←[39m ←[90m at packageResolve (node:internal/modules/esm/resolve:954:9)←[39m ←[90m at moduleResolve (node:internal/modules/esm/resolve:1003:20)←[39m ←[90m at defaultResolve (node:internal/modules/esm/resolve:1218:11)←[39m ←[90m at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)←[39m ←[90m at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)←[39m ←[90m at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)←[39m ←[90m at link (node:internal/modules/esm/module_job:78:36)←[39m { code: ←[32m'ERR_MODULE_NOT_FOUND'←[39m }
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!