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.
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.
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
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.
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 hownpx
would make it easier for me, as I wouldn't have to use thatnpm
script intermediary when I'm figuring out how the package works. Nice.