Bug 2438837

Summary: nodejs20 does not own/provide /usr/lib/node_modules directory
Product: [Fedora] Fedora Reporter: Jan Staněk <jstanek>
Component: nodejs20Assignee: Jan Staněk <jstanek>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: aradchen, jstanek, tjuhasz
Target Milestone: ---Keywords: Regression
Target Release: ---Flags: jstanek: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs20-20.20.0-7.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: 2438831 Environment:
Last Closed: 2026-02-19 11:36:44 UTC Type: ---
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: 2438831    
Bug Blocks:    

Description Jan Staněk 2026-02-11 11:39:43 UTC
+++ This bug was initially created as a clone of Bug #2438831 +++

After the https://fedoraproject.org/wiki/Changes/NodejsNodeModulesPath has landed, ownership of the (empty) /usr/lib/node_modules directory should be shared by all the active stream. nodejs24 has prepared for that, but the relevant parts were left commented out, and the pretrans scriptlet is not yet present.

By copying the new-style spec file to the other streams in rawhide, I unintentionally also removed their ownership of said directory, so right now *nothing* provides /usr/lib/node_modules in rawhide and F44. I'll clone this bug for the other streams as well.

Reproducible: Always

Steps to Reproduce:
Install nodejs20 package.

Actual Results:
/usr/lib/node_modules is not provided by nodejs20.

Expected Results:
/usr/lib/node_modules is provided by nodejs20.
%pretrans scriptlet is being run to ensure any old symlink is removed if present.

Comment 1 Fedora Update System 2026-02-17 13:48:25 UTC
FEDORA-2026-3cf5dcee8d (nodejs20-20.20.0-7.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-3cf5dcee8d

Comment 2 Fedora Update System 2026-02-17 14:02:25 UTC
FEDORA-2026-53e0baafd2 (nodejs20-20.20.0-7.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-53e0baafd2

Comment 3 Fedora Update System 2026-02-19 11:36:44 UTC
FEDORA-2026-53e0baafd2 (nodejs20-20.20.0-7.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.