Skip to content

Commit 0b2d8e7

Browse files
authored
Set npm version as 11.6.0 in renovate (#1440)
We’re seeing an issue where libraries listed in optionalDependencies are being removed from the lockfile by Renovate. Specifically, axios is dropped from the lockfile, causing CI to fail. We found that pinning npm to 11.6.0 or below resolves the problem, so we’ll update the Renovate configuration to use npm 11.6.0. However, I can’t reproduce the issue locally even with npm 11.6.1 or later, so the root cause hasn’t been determined.
1 parent b08bbb5 commit 0b2d8e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

renovate.json5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
"dependency upgrade"
1515
],
1616
minimumReleaseAge : "7 days",
17+
// To prevent libraries in optionalDependencies from being removed from the lock file
18+
constraints: {
19+
npm: "11.6.0"
20+
},
1721
packageRules: [
1822
{
1923
labels: [

0 commit comments

Comments
 (0)