But when you have installed via npm I’d recommend uninstalling CLI from all locations and then reinstall with the installer. For future updates use particle update-cli instead of npm.
BTW, you should not run npm install from within Windows/system32. Rather put do that from a less sensitive directory - prefereably your user account directory.
Thanks for the tip. Just to check, what is the best way to unistall the current CLI? Would I be able to see it under add/remove programs or is there a terminal command which will do that?
If you installed via the installer, it will be visible in Add/Remove Programs
Otherwise you'd use npm uninstall -g particle-cli.
But if you previously used npm install without the -g or --global switch, you might have multiple instances of CLI on your machine, which you'd need to locate "manually" and remove from there via npm uninstall particle-cli or remove the complete "local" *node* folders.
I tried again with the windows installer, and was on a different internet connection and waited patiently. It all installed properly. I just needed to wait longer.