Add libexec/lib/node_modules to RESOLVE_NODE_HOME_SCRIPT to work with Homebrew
Hello, I'm on mac and I have node installed via brew at /usr/local/Cellar/node/${version}/bin/node.
The RESOLVE_NODE_HOME_SCRIPT looks for lib/node_modules or node_modules, but mine is under libexec/lib/node_modules
.
Looking at the brew node formula it does look like it uses libexec/lib/node_modules. This is the best post I can see explaining libexec going into how it's supposed to have everything that is considered private and anything in just the lib automatically gets exposed by homebrew.
To support this we just need to modify the RESOLVE_NODE_HOME_SCRIPT in SystemNodeLinker to look under libexec/lib/node_modules
as well.