4 ms·
FWIW npm 5 comes with npx [0] which basically does similar things. If you run npx webpack it would use the local copy of webpack or even install one run it and
by fahrradflucht 9y ago
FWIW npm 5 comes with npx [0] which basically does similar things. If you run npx webpack it would use the local copy of webpack or even install one run it and discard it.
[0] https://www.npmjs.com/package/npx https://www.npmjs.com/package/npx
- eliaslfox 9y agoThat's not the same thing. Npx is for running commands you install from npm, and yarn [command] allows you to run scripts defined in your package.json file.
- fahrradflucht 9y agonpm always did this. The OC said that he likes that yarn can also run local binaries that are not a npm script.