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

[BUG] npm doesn't read config from /etc/npmrc #3074

Closed
duongdominhchau opened this issue Apr 14, 2021 · 3 comments
Closed

[BUG] npm doesn't read config from /etc/npmrc #3074

duongdominhchau opened this issue Apr 14, 2021 · 3 comments
Labels
Bug thing that needs fixing Release 7.x work is associated with a specific npm 7 release

Comments

@duongdominhchau
Copy link

Instead, it reads config from /usr/etc/npmrc. This is correct docs-wise, but is unconventional on Linux. The convention is when install prefix is /usr, the directory /etc is used to store configuration (without the prefix).

Current Behavior:

npm reads system-wide config from /usr/etc/npmrc

Expected Behavior:

npm reads system-wide config from /etc/npmrc

Environment:

  • OS: Arch
  • Node: 15.14.0
  • npm: 7.9.0
@duongdominhchau duongdominhchau added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Apr 14, 2021
@ljharb
Copy link
Collaborator

ljharb commented Apr 14, 2021

What is your use case for system-wide configuration at all?

@duongdominhchau
Copy link
Author

I use that to change the directories to follow XDG for all users (workaround because #654 is still open).

@darcyclarke darcyclarke removed the Needs Triage needs review for next steps label May 28, 2021
@darcyclarke
Copy link
Contributor

This isn't a bug - https://docs.npmjs.com/cli/v7/using-npm/config#globalconfig If you'd like us to consider this, definitely propose it over on our npm/rfcs repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

3 participants