I am currently using typescript 2.1.4 and npm version 6.7.0.
Realizing that 2.1.4 is quite outdated, I decided to try and update it.
Here are the steps I took, which unfortunately did not work:
$ sudo npm update -g typescript
$ tsc --version
Vesion 2.1.4
$ sudo npm install -g typescript@latest
/usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc
/usr/local/bin/tsserver ->
/usr/local/lib/node_modules/typescript/bin/tsserver
+ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f084898095839382998084b0c3dec3dec1">[email protected]</a>
added 1 package from 1 contributor in 1.229s
$ tsc --version
Version 2.1.4