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 Daniel M. Capella (polyzen) - Monday, 10 July 2023, 01:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Daniel M. Capella (polyzen)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
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

Closed by  Daniel M. Capella (polyzen)
Monday, 10 July 2023, 01:25 GMT
Reason for closing:  Implemented
Additional comments about closing:  9.8.0-2

Loading...