When I run npx --version, it returns me v6.x.x
But after I do npm install -g npx, yarn global add npx, and it shows successful download of npx v10, running npx --version still returns me v6.x.x
Running where npx gives me:
C:\Program Files\nodejs\npx
C:\Program Files\nodejs\npx.cmd
C:\Users\Samson\AppData\Roaming\npm\npx
C:\Users\Samson\AppData\Roaming\npm\npx.cmd
Ran into the same issue, this is what worked for me:
Delete each one of the files listed in the output of where npx, for example del "C:\Program Files\nodejs\npx"
Run npm uninstall -g npx
Run npm install -g [email protected] (or whatever version you want to install)
After doing these steps, when I run npx --version I see the correct one, and the issue that required me to upgrade npx is fixed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With