zkat / npx

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

Avoid installation if same module is used multiple times #123

Closed vjpr closed 7 years ago

vjpr commented 7 years ago

If I run npx cowsay@1 boo twice in a row, it will always install twice...even if its installed globally.

Could we not compare that package-lock.json has not changed since the last install, and make it instant without needing to show a progress bar?

At the moment I see a ~2s delay each time I run this command (even with all deps cached). If I want to specifically run cowsay@1, I will always incur this penalty.

zkat commented 7 years ago

This is a duplicate of #113