<!DOCTYPE html><html><body>Package: nodejs<br>Severity: important<br>Control: block 1001526 by -1<br><br>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.<br><br>I think we should patch nodejs to search for system ES modules like we did for commonjs.<br><br>load-json-file is an example which became a ES module in recent release.<div style='white-space: pre-wrap'><div class='k9mail-signature'>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</div></div></body></html>