<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-06-13 22:09 GMT+02:00 Bastien ROUCARIÈS <span dir="ltr"><<a href="mailto:roucaries.bastien@gmail.com" target="_blank">roucaries.bastien@gmail.com</a>></span>:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
You could check the patch by doing require('os').constants and see <br>
 ARCH_TRIPLET: 'x86_64-linux-gnu',<br>
  GLOBAL_NODE_PATH:<br>
   '/usr/local/lib/x86_64-linux-<wbr>gnu/nodejs:/usr/local/share/<wbr>nodejs:/usr/local/lib/nodejs:/<wbr>usr/lib/x86_64-linux-gnu/<wbr>nodejs:/usr/share/nodejs:/usr/<wbr>lib/nodejs',<br></blockquote><div><br></div><div>That kind of configuration variables should go into</div><div>process.config.variables</div><div>where you can see that there is almost already that information:</div><div>target_arch, host_arch, node_prefix</div><div><br></div><div>Taking into account my previous comment about no /usr/local,</div><div>let me refine your proposal to:</div><div>/usr/share/nodejs (because 99% modules are pure js, let's search them first)</div><div>/<wbr>usr/lib/x86_64-linux-gnu/<wbr>nodejs (because addons should go there)<br></div><div>/<wbr>usr/lib/<wbr>nodejs (keep the old path until no debian package use it)<br></div><div><br></div><div>to the global default search path.</div><div><br></div><div>Jérémy</div></div><br></div></div>