DEV Community

Discussion on: What is NPX?

Collapse
 
matheusgomes062 profile image
Matheus Gomes 👨‍💻

I think this is a good way to install the packages, actually is the right way in my opinion. I think npx is more to try packages, and to use with cli, so we don't need to install every time someone wants to see your project.

Collapse
 
yvesgurcan profile image
Yves Gurcan

Ah, that's right! Once I install the dependency, I write an npm script to run it and if it does not work for me I just remove the dependency and the script. I can see how npx would make it easier for me, as I wouldn't have to use that npm script intermediary when I'm figuring out how the package works. Nice.