|
Server IP : 161.35.85.9 / Your IP : 216.73.217.138 Web Server : nginx/1.30.1 System : Linux cheapdeb-ams3 7.0.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.0.9-1 (2026-05-22) x86_64 User : root ( 0) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/java/../python-apt/../python/../python3/../python/../gitweb/../doc/nodejs/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
nodejs for Debian
=================
CommonJS global folders
-----------------------
Documentation at:
file:///usr/share/doc/nodejs/api/modules.html#loading-from-the-global-folders
The documentation explains that CommonJS module eventually looks into `$PREFIX/lib/node`.
However in Debian, modules are installed in different paths, so the global folders
have been modified to instead end up searching into:
* "/usr/lib/<$DEB_HOST_MULTIARCH>/nodejs" for c++ addons
* "/usr/share/nodejs" for pure javascript modules
ES6 Modules
-----------
Documentation at:
file:///usr/share/doc/nodejs/api/esm.html#terminology
There is no global lookup with ESM.
One can easily symlink globally-installed modules into a local package using
"pkgjs-install-minimal" from the dh-nodejs debian package.