If I try to update my npm via npm update -g npm
I'll get an error: npm ERR! Unexpected token '.'
Since this is a known bug: https://github.com/npm/cli/issues/4234. How do I upgrade my npm without having to use npm itself?
I am using Windows and nvm for Windows.
Versions:
PS> npm -v
8.8.0
PS> node -v
v18.1.0