Bug 2222287 - nodejs:18/nodejs: Remove /usr/etc/npmrc softlink. [rhel-8]
Summary: nodejs:18/nodejs: Remove /usr/etc/npmrc softlink. [rhel-8]
Keywords:
Status: ON_QA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nodejs
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Jan Staněk
QA Contact: Jan Houska
URL:
Whiteboard:
Depends On: 2222285 2177776
Blocks: 2177781 2222288 2223642
TreeView+ depends on / blocked
 
Reported: 2023-07-12 14:39 UTC by Jan Staněk
Modified: 2023-08-14 11:14 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2222285
: 2222288 2223642 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-162120 0 None None None 2023-07-12 14:41:52 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.