|
|
|
|
|
by spdionis
2663 days ago
|
|
> Both `npm install` and `npm ci` respect the lock file This is not correct. `npm install` will update your dependencies, not install them, disregarding the package versions defined in the lock file. It feels like you are not getting the point of having a lock file in the first place. It should be obvious that you can't do an install (which npm calls ci) if you don't have a lock file. The lock file represents your actual dependencies. Package.json should only be used to explicitly update said dependencies. |
|
I often don't know what I'm talking about in general, but I do usually know what I'm talking about re npm.