DEV Community

Discussion on: When npm tells you you're hosed

Collapse
 
john_papa profile image
John Papa

I think npm ci is a great tool! Thanks for adding this thought!

From what I read on the npm blog they said

npm ci bypasses a package’s package.json to install modules from a package’s lockfile. This ensures reproducible builds—you are getting exactly what you expect on every install.

This may be what you want, but sometimes the package lock is a problem too (in my experience).

So ... I think this can be a great solution, if that package lock is good to go. If not, then wipe

Collapse
 
bnb profile image
Tierney Cyren

In my experience npm ci is very useful in very specific situations. Ironically, since you're blowing away the modules that were resolved you'll most likely end up with the same problem you had before if you try with npm ci since those modules are also resolved into pacakge-lock.json.

Thread Thread
 
john_papa profile image
John Papa

Those are great points. Thanks for adding