Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use HOME environment variable for npm configuration file lookup #1399

Merged
merged 1 commit into from
Apr 24, 2024
Merged

fix: use HOME environment variable for npm configuration file lookup #1399

merged 1 commit into from
Apr 24, 2024

Conversation

plasticrake
Copy link
Contributor

On a Windows machine I am forced to work on, my $HOME environment variable is different that what os.homedir() returns. This change first looks at $HOME to mimic how npm finds the user configuration file.

See: https://github.com/npm/cli/blob/dd39de7d1da743cbd33b671fa96f66667109b451/workspaces/config/lib/index.js#L313

Documentation: https://github.com/npm/cli/blob/7f4e66772ee631158b47fcfcd8e22b7b6b9b9cce/docs/lib/content/using-npm/config.md?plain=1#L48

per-user configuration file (defaults to `$HOME/.npmrc`; configurable via CLI

@raineorshine
Copy link
Owner

Looks good to me! Will publish tomorrow.

@raineorshine raineorshine merged commit 02e93f8 into raineorshine:main Apr 24, 2024
7 checks passed
@raineorshine
Copy link
Owner

Fixed and published in v16.14.19.

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.

2 participants