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

521
Visualizações
ENOENT: no such file or directory, open './config/secrets.json'

I am working on a git clone with a co-worker and I am fairly new to coding, so pardon my novice. I opened a git clone and when I try to run npm run serve, I get a no such file or directory open.

I have tried deleting the package-lock.json as well as the node-modules, then restarting with npm install and then npm cache clean,then npm install -g npm,then npm install,Finally ng serve --o

as well as various other methods including renaming the file, but I do not understand where I have gone wrong. Here is some code. Thank you for your time

[0] node:internal/fs/utils:344
[0]     throw err;
[0]     ^
[0]
[0] Error: ENOENT: no such file or directory, open './config/secrets.json'
[0]     at Object.openSync (node:fs:585:3)
[0]     at Object.readFileSync (node:fs:453:35)
[0]     at Object.<anonymous> (C:\Users\jlemke\JL Code\service-field-report\app.js:10:29)
[0]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
[0]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
[0]     at Module.load (node:internal/modules/cjs/loader:981:32)
[0]     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[0]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
[0]     at node:internal/main/run_main_module:17:47 {
[0]   errno: -4058,
[0]   syscall: 'open',
[0]   code: 'ENOENT',
[0]   path: './config/secrets.json'
[0] }
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This is a common model for working with version control, where secret information like passwords etc is kept and distributed separately.

Most likely if you look in .gitignore you will see config/secrets.json listed as not to be included in the project.

You might be able to work round this by creating an empty config/secrets.json file - but more likely you will need to get this file (or the contents) direct from your co-worker.

about 4 years ago · Juan Pablo Isaza Relatório
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