Node.js · Junior · Question 28 of 75
What does npx do?
- ✓Correct answer: Runs a command from a package: the local one from
node_modules/.binor, if missing, a downloaded one - 2Publishes a package to npm
- 3Removes unused packages
Explanation
For example, npx eslint . runs the project's ESLint. It is also handy for one-off tools like project generators, without installing them globally.