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

378
Views
Exception has occurred: Error: ENOENT: no such file or directory

I am trying to debug my nodejs application but on running javascript debugger, it's showing error.

enter image description here

Here is the package.json file of my project.

{
   "name": "server",
   "version": "1.0.0",
   "description": "server side",
   "main": "index.js",
   "scripts": {
     "start": "nodemon index.js",
     "debug": "nodemon --inspect index.js"
   },
   "keywords": [],
   "dependencies": {
     "aws-sdk": "^2.1069.0",
     "bcryptjs": "^2.4.3",
     "body-parser": "^1.19.1",
     "cors": "^2.8.5",
     "dotenv": "^16.0.0",
     "express": "^4.17.2",
     "express-validator": "^6.14.0",
     "jsonwebtoken": "^8.5.1",
     "mongoose": "^6.2.0",
     "multer": "^1.4.4",
     "nodemon": "^2.0.15"
   },
   "devDependencies": {},
   "author": "alkairis",
   "license": "ISC"
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you're using VSCode, I recommend to expose a port at inspect like this:

nodemon --inspect=0.0.0.0:9229 index.js

and then you add something like this config to your .vscode/launch.json:

{
              "type": "node",
              "request": "attach",
              "name": "Attach to Remote",
              "restart": true,
              "stopOnEntry": true,
              "port": 9229,
              "address": "0.0.0.0",
              "localRoot": "${workspaceFolder}",
              "sourceMaps": true,
              "protocol": "inspector"
}
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!