Hacker News new | past | comments | ask | show | jobs | submit login

> I believe you should be guarded from any surprise patches

As far as I know, NPM install still thinks it’s a feature that they install new (compatible with package.json, but not with lockfile) versions.




Which is why you only use `npm install` for development, and `npm ci` for production.


No, updating versions should require an explicit `update` command of some sort. The NPM commands should really just be renamed:

- `npm install` should be renamed to `npm upgrade`

- `npm ci` should be renamed to `npm install`




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

Search: