[Pkg-javascript-devel] Bug#858940: [node-browserify-light] browserify ignores modules in /usr/lib/nodejs

Lars Kruse devel at sumpfralle.de
Tue Mar 28 20:17:42 UTC 2017


Package: node-browserify-light
Severity: normal

--- Please enter the report below this line. ---

Dear maintainers,

currently the node-browserify-lite program is searching for node modules only
in the directory $PWD/node_modules.
Thus it is not possible to use node modules that are installed via other debian
packages. These are found below /usr/lib/nodejs.

I would like to bundle a local application (partially) based on the system-wide
installed node modules. This requires the above additional search path.

The NODE_PATH environment variable could be used to override the default
node_modules location, but it doesn’t seem to be used when resolving modules
recursively and therefor fails if a required module requires another module.
Thus this environment variable currently would not solve my problem.

Thank you for your time!

Cheers,
Lars



More information about the Pkg-javascript-devel mailing list