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

265
Visualizações
Preventing package.json from updating packages

I wanted to know if there is any clean way of preventing package.json file from updating to latest versions of the dependencies that it contains.

The reason I don't want them to update is because of I need to frequently run few scripts with certain libraries the project contains and if the libraries get updated to latest versions, then I may not be able to validate my tests if some additional transitive dependencies are present.

Please note: I am not using npm update in any case, but I do use npm install.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

See this answer: https://stackoverflow.com/a/41003507/4236831

You can specify the exact version in your package.json file.

A more detailed overview of managing the versions of your dependencies can be found here: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#dependencies

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