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

279
Visualizações
npm ci not throwing error despite mismatch

I've been reading about npm ci lately, and have been trying to understand it fully, but I'm running into an issue.

it is strictly written in npm docs that

If dependencies in the package lock do not match those in package.json, npm ci will exit with an error, instead of updating the package lock.

However for me, it just never exits with an error, and always succeeds, not matter how my package-lock.json differs from my package.json. I've tried updating my package-lock.json manually with a non-existing version (v30.7.0) for zustand, I've tried completely removing any mention of zustand from my package-lock.json, and I've tried manually downgrading it to v3.0.0. Every single time, npm ci succeeds and installs zustand v3.7.0 successfully.

Either I'm not fully getting what it's supposed to do, or it's just not functioning correctly, I'd really love for someone to clear that up for me. Thanks!

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