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

333
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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