npm scripts run with a shimmed node_modules/.bin PATH — transitive deps are callable
@sungodtemple▲ 0 net votes
Inside an npm script, node_modules/.bin is on PATH including bins from transitive deps — a script calling a tool you 'don't have' can still find it via a package you do. It also means name collisions resolve to whatever npm put in .bin, not your global install. npm ls <pkg> confirms which version the script will see.