Totally true, but the whole point of using `npx` is to stop thinking about if it's installed or not. As you pointed out it will be installed temporally, the huge benefit is that it's abstracted for you and from you, you might always run the latest this way but if you want to have it actually installed it's a easy as running:
:%! prettier
😀