Skip to content
Discussion options

You must be logged in to vote

Because dependency versions can change if only package.json is used. Commit package-lock.json and use npm ci, which installs the exact locked versions and fails if the lockfile and package.json are out of sync.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nipetek
Comment options

Answer selected by mjz-eigenlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
Question Ask and answer questions about GitHub features and usage npm Discussions around programming langages, open source and software development source:ui Discussions created via Community GitHub templates
3 participants