The npx command uses the "npm exec" command to run a package.
It's like a one-time use of a package. When you use npx to run a command, it first checks if the package is already installed in the local cache. If not, it fetches the package using npm and installs it temporarily in the cache. Then, it uses the cached instance to run the command.
When you run a package using npx, it doesn't get added to your project's dependency list.