DEV Community

Discussion on: Automatically Install NPM Dependencies on Git Pull

Collapse
 
gaardsholt profile image
Lasse Gaardsholt

Shouldn't you run npm ci instead of npm install ?
Won't npm install try to update your package.json?

Collapse
 
zirkelc profile image
Chris Cook

If the semver versions in package.json and package-lock.json fit with each other, npm install should behave identically to npm ci.

For more information check this comment by the creator of npm ci: dev.to/zkat/comment/epbj