Unverified Commit 055482c2 authored by Richard Lau's avatar Richard Lau Committed by Gibson Fahnestock
Browse files

module: fix loading from global folders on Windows

Code was calculating $PREFIX/lib/node relative to process.execPath, but
on Windows process.execPath is $PREFIX\node.exe whereas everywhere else
process.execPath is $PREFIX/bin/node (where $PREFIX is the root of the
installed Node.js).

PR-URL: https://github.com/nodejs/node/pull/9283


Reviewed-By: default avatarSam Roberts <vieuxtech@gmail.com>
Reviewed-By: default avatarGibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: default avatarJoão Reis <reis@janeasystems.com>
Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent 92e7c93f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment