Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic implementation of a flag to use `package-lock.json` contents during normal installs. - `from-lockfile` reads from `package-lock.json` or another shrinkwrap for exact package numbers. - `from-lockfile` does **not** remove `node_modules`. - `from-lockfile` is ignored when installing new packages. - `from-lockfile` will error out if a `package-lock.json` or other shrinkwrap is not present. - `npm install --from-lockfile` is **not** a clean install. If an existing installed module is corrupted or edited beyond the point where a normal `npm install` would catch it, it will not be cleared out and reinstalled. It does not offer the same deterministic guarantees that `npm ci` offers. Documentation still needs to happen, and there's a little bit more testing to do. This is an implementation of a feature that's still in-review, so things might change.
- Loading branch information