Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2222287

Summary: nodejs:18/nodejs: Remove /usr/etc/npmrc softlink. [rhel-8]
Product: Red Hat Enterprise Linux 8 Reporter: Jan Staněk <jstanek>
Component: nodejsAssignee: Jan Staněk <jstanek>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Houska <jhouska>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, jcastran, jstanek, jwboyer, nodejs-maint, rhel-cs-apps-subsystem-qe, zsvetlik
Target Milestone: rcKeywords: Rebase, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2222285
: 2222288 2223642 (view as bug list) Environment:
Last Closed: 2023-11-27 13:23:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2177776, 2222285    
Bug Blocks: 2177781, 2222288, 2223642    

Description Jan Staněk 2023-07-12 14:39:56 UTC
+++ This bug was initially created as a clone of Bug #2222285 +++

+++ This bug was initially created as a clone of Bug #2177776 +++

Description of problem:
Initially reported https://bugzilla.redhat.com/show_bug.cgi?id=2176555 against osbuild, the easiest method of resolving this issue is if we can remove the /usr/etc/npmrc softlink in npm and just use /etc/npmrc.

If we can do that, then osbuild will not have to workaround this single package. This is the only package we have found so far that has any content in /usr/etc/

# rpm -qlv npm | grep etc/npmrc
-rw-r--r--    1 root    root                       18 Feb 25  2021 /etc/npmrc
lrwxrwxrwx    1 root    root                       10 Feb 25  2021 /usr/etc/npmrc -> /etc/npmrc

Version-Release number of selected component (if applicable):
RHEL 8 and RHEL 9 npm

--- Additional comment from  on 2023-03-15 12:45:58 UTC ---

Since image builder can not handle modules only the default (16) is applicable at this time BUT I do have a bug on image builder getting the ability to handle modules.  So if we could take it out of both streams, and future streams of nodejs, this issue wouldn't return.

Comment 3 Jan Staněk 2023-07-18 11:58:02 UTC
Changes submitted to CentOS Stream: https://gitlab.com/redhat/centos-stream/rpms/nodejs/-/merge_requests/60

Comment 4 Jan Staněk 2023-07-18 12:33:21 UTC
Changes merged to CentOS Stream.