Performance: npx for running packages
MEDIUM IMPACT
This affects the initial load time and responsiveness when running Node.js packages directly from the command line without global installation.
npx create-react-app my-app
npm install -g create-react-app create-react-app my-app
| Pattern | Disk Usage | Startup Delay | Network Usage | Verdict |
|---|---|---|---|---|
| Global install (npm -g) | High (stores package globally) | Delay during install only | None after install | [OK] |
| npx run without cache | Low (no global install) | Delay on first run due to download | High on first run | [X] Bad |
| npx run with cache | Low | Minimal startup delay | None after first run | [OK] Good |