Closed vweevers closed 5 years ago
@mafintosh @emilbayes @lpinca @lgeiger Any objections?
(Apologies if I've wrongly identified you as a prebuildify
user)
@vweevers i thought npm prefixed the path with the local ones?
if not, yea if it can be done simply then 👍 obvs :)
i thought npm prefixed the path with the local ones?
It still does that, but the path to the bundled node-gyp
takes precedence over that local .bin
folder. This has been the case since npm 5.6.0 (surprised me as well).
That's lame 👎 All for supporting that.
No objections.
Currently,
prebuildify
uses thenode-gyp
that's available inPATH
and whennpm
runs scripts, it adds the globalnode_modules/npm-lifecycle/node-gyp-bin
folder toPATH
. Effectively, we're always using the npm-bundled version ofnode-gyp
.