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

399
Views
How to fix ENOENT: no such file or directory, open './config/dev .json'

I've got an old code which was developed on node version 8. I'm using node v16.13.0 and when I tried to run "npm install" It showed some incompatibility between the node versions, so I updated its package.json by running "ncu -u" after that I got success in installing node modules by running "npm install" but when I try to run a script "npm run start-dev" it shows me this error

node:internal/fs/utils:344 throw err; ^

Error: ENOENT: no such file or directory, open './config/dev .json' at Object.openSync (node:fs:585:3) at Object.readFileSync (node:fs:453:35) at loadFile (D:\My Work\development\diemnode\node_modules\convict\src\main.js:434:19) at D:\My Work\development\diemnode\node_modules\convict\src\main.js:597:24 at Array.forEach () at Object.loadFile (D:\My Work\development\diemnode\node_modules\convict\src\main.js:595:13) at Object. (D:\My Work\development\diemnode\config.js:101:8) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) { errno: -4058, syscall: 'open', code: 'ENOENT', path: './config/dev .json' } [nodemon] app crashed - waiting for file changes before starting...

And when I go to this directory as it says

open './config/dev .json'

The file dev.json is already there and inside that file there is only empty brackets "{}" like this.

here's my file structure from the root

enter image description here

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!