Few things make me feel like as much of a ****ing moron as using npm.
I have typescript 2.2.1 installed globally. I want to update it to 2.2.2, as that's what the newest VS Code update wants to use. I have found no combination of flags I can attach to
npm update to make it update. The docs certainly suggest it should:
Quote:
Updating Globally-Installed Packages
npm update -g will apply the update action to each globally installed package that is outdated -- that is, has a version that is different from latest.
NOTE: If a package has been upgraded to a version newer than latest, it will be downgraded.
Does "latest" have some special meaning here where it's not
actually the latest version until I run another magic command to update the "latest" pointer?
npm update -g typescript: stays at 2.2.1.
Add --save (idk); no change.
Make it typescript@2.2.2; no change.
I finally give in and npm uninstall -g typescript / npm install -g typescript. It installs 2.2.2. **** this piece of **** package manager, why do I have to do that?? Why can't the "update" command actually ****ing update something? **** you.