Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#62380 - [npm] npm looks for global configuration in /usr/etc

Attached to Project: Community Packages
Opened by Celti Burroughs (Celti) - Wednesday, 17 April 2019, 20:28 GMT
Last edited by Balló György (City-busz) - Wednesday, 17 April 2019, 21:14 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


npm currently builds configured with `--prefix=/usr` without any exemption for global configuration, causing it to look for /usr/etc/npmrc, against current packaging guidelines.

This can be fixed by adding `--globalconfig=/etc/npmrc` when building.

Additional info:
* 6.9.0-1
* You can verify the current search location with `npm config get globalconfig`.
This task depends upon