DEV Community

Discussion on: NPX: work faster with npm package binaries

Collapse
 
karataev profile image
Eugene Karataev

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?

Collapse
 
pankajpatel profile image
Pankaj Patel

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.