re: NPX: work faster with npm package binaries VIEW POST


Thanks for the post. One question: can I say that command

npx create-react-app my-awesome-project

is a shorthand to

npm install -g create-react-app
create-react-app my-awesome-project
npm uninstall -g create-react-app

Are there any optimizations under the hood when using npx compared to global package install/uninstall?


Yes pretty much as you said. I don't think there are notable optimizations.

Though the point is to save you from writing three shell commands. Anyways, those three commands can also be executed in one go by some advanced bash automation.

Code of Conduct Report abuse