npm: When to use `–force` and `–legacy-peer-deps`

In the new version of npm (v7), by default, npm install will fail when it encounters conflicting peerDependencies. It was not like that before. Take a look here for more info about peer dependencies in npm v7. The differences between the two are below – –legacy-peer-deps: ignore all peerDependencies when installing, in the style of … Read more

What is the difference between “npm install” and “npm ci”?

From the npm docs: In short, the main differences between using npm install and npm ci are: The project must have an existing package-lock.json or npm-shrinkwrap.json. If dependencies in the package lock do not match those in package.json, npm ci will exit with an error, instead of updating the package lock. npm ci can only … Read more

tech