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

275
Views
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
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!