Repository navigation
Use npm ci for the Vercel install step - #397
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the Vercel configuration change to use npm ci.
No open issues 🎉
What changed in this PR
Configures Vercel deployments to use clean, lockfile-based dependency installs, separating this deployment safeguard from the dependency updates in #394.
Changes:
- Sets Vercel’s install command to
npm cito avoid in-place updates to cachednode_modules. - Adds deployment configuration only; application code and dependencies remain unchanged.
| File | Description |
|---|---|
vercel.json |
Sets installCommand to npm ci for reproducible dependency installs. |
Review effort: Balanced
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
vercel.jsonthat sets the Vercel install command tonpm ci, so every deployment installs dependencies from a cleannode_modulesbased onpackage-lock.json.This is the
vercel.jsonpart of #394, split out so it can be merged on its own ahead of the dependency updates.Why
Vercel restores
node_modulesfrom its build cache and runsnpm install. npm 11 crashed during that in-place update withERR_INVALID_ARG_TYPE(The "from" argument must be of type string. Received undefined), which broke a preview deployment of thechore/npm-minor-updatesbranch on 2026-11-23 (deployment HnYqoQevaiuK5eu2avFEnsDQ4mNX, install step only; production was not affected).npm cialways starts from a cleannode_modulesand installs exactly what the lockfile specifies, which avoids the bug and makes installs reproducible.Notes
vercel.json.vercel.jsonchange in Update npm dependencies within semver ranges + audit fix #394 becomes redundant.