[Pkg-javascript-devel] Bug#1005089: nodejs: Add node_modules links to nodejs

Yadd yadd at debian.org
Mon Feb 7 07:29:06 GMT 2022


Package: nodejs
Version: 16.13.2~dfsg-2
Severity: normal

Hi,

starting from version 14, nodejs is able to run .mjs files. However,
"import" method only works when dependency is available in node_modules
directories. To avoid having to create node_modules/* links in each
directory, it could be usefull to have node_modules links that points to
nodejs in each /usr/(share|lib|lib/${DEB_MULTIARCH})/nodejs directory.

Then only some links will be needed when a /usr/share/nodejs file tries
to "import" a /usr/li/x86_64*/nodejs module.

Alternative: modify nodejs to be able to search "import" modules in
process.config.variables.node_relative_path

Cheers,
Yadd



More information about the Pkg-javascript-devel mailing list