Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

409
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda