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

341
Visualizações
Difference between package-lock and node_modules/.package-lock

What's the purpose of the additional .package-lock.json inside node_modules? It seems to be a subset of package-lock.json.

I assume this has been asked before, but i couldn't find anything in the npm docs, and google still refuses to properly search for punctuation symbols, so here we are.

PS: It's recreated by npm i, when i delete it. However i cannot find it on older projects of mine, so it appears to be a newer thing.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The additional node_modules/.package-lock.json is a helper file, which speeds up npm under normal circumstances. When npm finds, that node_modules hasn't changed (checked by e.g. looking at the modified-time of package folders), it can be used instead of processing the folder repeatedly.

As RobC mentions in his comment:

A comprehensive description for node_modules/.package-lock.json can be found in the Hidden Lockfiles section of the "yet to be published docs" in the GitHub repo.

over 4 years ago · Santiago Trujillo 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