In a package review (https://bugzilla.redhat.com/show_bug.cgi?id=2333620), it was observed that directory /usr/lib/node_modules/ is owned by package nodejs is Fedora 43 and earlier, whereas in Fedora 44 it is not.
Do we know if this is intended? Do packages that create files under this directory need to own it themselves now, rather than depending on the package that does? If so, I think https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/ needs updating to reflect that.
That's probably fallout from:
https://fedoraproject.org/wiki/Changes/NodejsAlternativesSystem
There is a change to the documentation pending, but it hasn't been merged yet because the packaging committee would like it to be line-wrapped:
https://pagure.io/packaging-committee/pull-request/1521
As far as I can tell, nothing should be installed in /usr/lib/node_modules, but if that's true, additional changes may be required to the documentation.
On Mon, Feb 9, 2026 at 7:13 AM Peter Oliver < lists.fedoraproject.org@mavit.org.uk> wrote:
In a package review (https://bugzilla.redhat.com/show_bug.cgi?id=2333620), it was observed that directory /usr/lib/node_modules/ is owned by package nodejs is Fedora 43 and earlier, whereas in Fedora 44 it is not.
Do we know if this is intended? Do packages that create files under this directory need to own it themselves now, rather than depending on the package that does? If so, I think https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/ needs updating to reflect that.
-- Peter Oliver -- _______________________________________________ nodejs mailing list -- nodejs@lists.fedoraproject.org To unsubscribe send an email to nodejs-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/nodejs@lists.fedoraproject.org Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
Hello!
On Mon, Feb 9, 2026 at 5:44 PM Gordon Messmer gmessmer@redhat.com wrote:
That's probably fallout from:
https://fedoraproject.org/wiki/Changes/NodejsAlternativesSystem
Yes, an unintentional side effect from re-writing our spec files – some things that should not be overridden was. I'll submit a patch(es) to address that today. FWIW, the ownership of the /usr/lib/node_modules directory should be shared between all the nodejs streams (so currently nodejs20, nodejs22, and nodejs24 packages).
As far as I can tell, nothing should be installed in /usr/lib/node_modules, but if that's true, additional changes may be required to the documentation.
/usr/lib/node_modules should still be the primary location for your npm modules, *iff* it is assumed it can reasonably run with any of the nodejs versions provided in Fedora. If you know for a fact that you need a specific nodejs version, /usr/lib/node_modules_<version> is the place for you.
https://fedoraproject.org/wiki/Changes/NodejsNodeModulesPath
Reported as https://bugzilla.redhat.com/show_bug.cgi?id=2438831; clones for other nodejs packages will soon follow.
nodejs@lists.fedoraproject.org