zkat / npx

execute npm package binaries (moved)
https://github.com/npm/npx
Other
2.63k stars 105 forks source link

Do better at isolating npx runs from each other #56

Closed zkat closed 7 years ago

zkat commented 7 years ago

Right now, every time npx runs, it removes all binaries from a single, shared binary directory. This works fine in isolation, but if there's a long-running pipeline, it can cause odd errors. For example, in npx foo | npx bar | npx baz, each successive npx call would blow away the bin directory before executing the next command. If everything a command from that bin dir is already loaded into memory on execution, that's fine -- but some required binaries for later stuff might end up getting removed.

npx should have a better model for this, and, ideally, it'll also facilitate faster re-runs.