0de216f95f
By default, NodeJS searches global modules in /usr/lib/node, but NPM installs them in /usr/lib/node_modules/. Therefore by default, if one installs modules with BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL, they are not accessible by NodeJS, unless by passing a NODE_PATH=/usr/lib/node_modules/ variable. Since this is not obvious, and it's nicer when things work out of the box, we simply patch NodeJS to look for modules at the right place. See https://stackoverflow.com/questions/15636367/nodejs-require-a-global-module-package for some discussions on this topic. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> |
||
---|---|---|
.. | ||
0001-add-qemu-wrapper-support.patch | ||
0002-check-if-uclibc-has-backtrace-support.patch | ||
0003-include-obj-name-in-shared-intermediate.patch | ||
0004-lib-internal-modules-cjs-loader.js-adjust-default-pa.patch | ||
Config.in | ||
Config.in.host | ||
nodejs.hash | ||
nodejs.mk | ||
v8-qemu-wrapper.in |