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

191
Views
Símbolo inesperado '.' en raspberry pi aunque el script funciona bien en Windows

Me aparece un error cuando voy a iniciar uno de mis bots de Discord en mi Raspberry Pi 3B.

 /home/pi/Downloads/xx/xx/bot.js:301 if (channel?.messages.cache.has(packet.d.message_id)) return; ^ SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47

Cuando ejecuto el mismo bot en mi máquina principal con Windows 11, funciona perfectamente bien.

NodeJS/NPM tanto en mi máquina principal como en mi R-Pi ejecutan v16.15.1. ¿Hay alguna manera de que pueda arreglar esto? Gracias de antemano.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Como se menciona en el sitio web nodejs.org , puede instalar las últimas versiones con el paquete deb de NodeSource :

 curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - # and then sudo apt-get install -y nodejs

Los paquetes predeterminados en su sistema no están actualizados. Buenos días

about 4 years ago · Juan Pablo Isaza Report
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!