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

407
Visualizações
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 à 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