To remove global npm packages, delete C:\Users\username\AppData\Roaming\npm C:\Users\username\AppData\Roaming\npm-cache
# download and install latest nodejs https://nodejs.org/en/
# update to latest npm
$ npm i -g npm@latest
# Shows the latest version of a package named typings
$ npm show typings version
# I like to keep my global package clean
# Shows my global packages
$ npm ls -g --depth=0
# Shows my global outdated packages
$ npm outdated -g
# the typings has been deprecated, to install typings for a lib, say https://www.npmjs.com/package/jwt-decode
$ npm install --save @types/jwt-decode
# if you run into npm ERR pointing to Cached binary found when you do npm i
# https://docs.npmjs.com/troubleshooting/try-clearing-the-npm-cache
# https://docs.npmjs.com/cli/cache
$ npm cache clean --force
# Since I don't need typings anymore, uninstall it
$ npm uninstall -g typings