[Pkg-javascript-devel] Bug#930268: Bug#1005089: nodejs: Add node_modules links to nodejs
Yadd
yadd at debian.org
Mon Feb 7 07:35:51 GMT 2022
On 07/02/2022 08:29, Yadd wrote:
> 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
This will also decrease lnks needed by typescript (#930268)
More information about the Pkg-javascript-devel
mailing list