Lock all dependencies? Back
As projects become larger and larger, we will always import so many dependencies, especially when what we need actually need more other sub-dependencies of
Therefore, how can I lock all versions of the dependencies tree?
npm has provided us
npm-shrinkwrap.json. In most cases, they are both the same thing, except that most important thing where
npm-shrinkwrap.json will be transferred from your project to others when someone use your project as a library.
email@example.com, we can construct
npm i directly, and if we want to construct
npm-shrinkwrap.json, we can just execute the command
npm ci is a recommended command for installing dependencies during building as it can guarantee that
node_modules should be cleared before installing.