Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node-linker=hoisted
shamefully-hoist=true
min-release-age=7
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Known npm bug with tilde version ranges

min-release-age was introduced in npm CLI 11.10.0 (Feb 2026) and is the correct key here. However, there is a known bug where having this setting in .npmrc causes npm install to fail with --min-release-age cannot be provided when using --before whenever any dependency in the tree uses a ~ version range — npm internally derives --before from the release-age value and then treats it as a conflict. Since most package.json files use tilde ranges, any direct npm install invocation in CI or local dev would be broken by this setting until the bug is resolved upstream.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .npmrc
Line: 3

Comment:
**Known npm bug with tilde version ranges**

`min-release-age` was introduced in npm CLI 11.10.0 (Feb 2026) and is the correct key here. However, there is a [known bug](https://github.com/npm/cli/issues/9005) where having this setting in `.npmrc` causes `npm install` to fail with `--min-release-age cannot be provided when using --before` whenever any dependency in the tree uses a `~` version range — npm internally derives `--before` from the release-age value and then treats it as a conflict. Since most `package.json` files use tilde ranges, any direct `npm install` invocation in CI or local dev would be broken by this setting until the bug is resolved upstream.

How can I resolve this? If you propose a fix, please make it concise.

Loading