[Pkg-javascript-devel] Bug#1001609: nodejs: Search in global paths for ES modules as well

Pirate Praveen praveen at onenetbeyond.org
Mon Dec 13 05:14:42 GMT 2021


Package: nodejs
Severity: important
Control: block 1001526 by -1

Currently all modules get installed in /usr/share/nodejs or one of arch dependent paths (older modules in /usr/lib/nodejs). For commonjs modules nodejs can find these modules by default, but now many modules are ES modules by default (type=module in package.json), which nodejs searches only in local node_modules directory so apt installed modules are not found.

I think we should patch nodejs to search for system ES modules like we did for commonjs.

load-json-file is an example which became a ES module in recent release.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211213/bd6f3e66/attachment.htm>


More information about the Pkg-javascript-devel mailing list