Skip to content

docs: clarify unsupported custom .npmrc keys and recommend alternatives#8998

Merged
wraithgar merged 1 commit intonpm:latestfrom
maitrawebtech:docs-config-unsupported-keys
Feb 19, 2026
Merged

docs: clarify unsupported custom .npmrc keys and recommend alternatives#8998
wraithgar merged 1 commit intonpm:latestfrom
maitrawebtech:docs-config-unsupported-keys

Conversation

@maitrawebtech
Copy link
Contributor

Adds clarification about unsupported custom configuration keys in .npmrc starting in npm v11.2.0.

Explains:

  • Why unknown keys produce warnings
  • That only officially supported npm config keys are recognized
  • How to use package.json#config for package-level configuration
  • How to pass arguments using --
  • Recommendation to use environment variables instead of custom .npmrc keys

Closes #8843

@maitrawebtech maitrawebtech requested a review from a team as a code owner February 19, 2026 11:11
@wraithgar wraithgar merged commit 0a5756d into npm:latest Feb 19, 2026
8 checks passed
@github-actions github-actions bot mentioned this pull request Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] npm config: clarify unsupported custom user keys and document recommended alternatives

2 participants