Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This hasn't been true since version 5.4.2, released in 2017.

`npm install` will always use the versions listed in package-lock.json unless your package.json has been edited to list newer versions than are present in package-lock.json.

The only difference with `npm ci` is that `npm ci` fails if the two are out of sync (and it deletes `node_modules` first).





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: