2018-06-13 22:09 GMT+02:00 Bastien ROUCARIÈS <roucaries.bast...@gmail.com>: > > > You could check the patch by doing require('os').constants and see > ARCH_TRIPLET: 'x86_64-linux-gnu', > GLOBAL_NODE_PATH: > '/usr/local/lib/x86_64-linux-gnu/nodejs:/usr/local/share/ > nodejs:/usr/local/lib/nodejs:/usr/lib/x86_64-linux-gnu/ > nodejs:/usr/share/nodejs:/usr/lib/nodejs', >
That kind of configuration variables should go into process.config.variables where you can see that there is almost already that information: target_arch, host_arch, node_prefix Taking into account my previous comment about no /usr/local, let me refine your proposal to: /usr/share/nodejs (because 99% modules are pure js, let's search them first) /usr/lib/x86_64-linux-gnu/nodejs (because addons should go there) /usr/lib/nodejs (keep the old path until no debian package use it) to the global default search path. Jérémy