Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

277
Visualizações
How to run javascript scripts from within VS Code using F5 or CTRL + F5?

When I try to run any javascript file from VS Code using native VS Code options: either 'Start debugging (F5)' or 'Run without debugging (CTRL + F5)', I get the following error:

Process exited with code 1
Uncaught Error Error: Cannot find module '/home/altair/Documents/Desktop/test/hello_world.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Module._load (node:internal/modules/cjs/loader:778:27)
    at executeUserEntryPoint (node:internal/modules/run_main:77:12)
    at <anonymous> (node:internal/main/run_main_module:17:47)

Where /home/altair/Documents/Desktop/test/hello_world.js is the path to file that I am trying to run.

I can run JS scripts fine from the terminal (including the terminal opened inside VS Code) with node ./hello_world.js, so the problem must be somewhere in VS Code.

Is it possible to run JS scripts from within VS Code using F5 or CTRL + F5?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda