Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Bypass true case path for old Node versions
Browse files Browse the repository at this point in the history
This was added in #2149 but doesn't support Node < 4
  • Loading branch information
xzyfer committed Nov 17, 2017
1 parent cabbee9 commit 40d1827
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ function getBinaryPath() {
binaryPath = path.join(defaultBinaryPath, getBinaryName().replace(/_(?=binding\.node)/, '/'));
}

if (process.versions.modules < 46) {
return binaryPath;
}

return trueCasePathSync(binaryPath) || binaryPath;
}

Expand Down

0 comments on commit 40d1827

Please sign in to comment.