If your system already installs typescript globally you just need to update the typescript version.
Make sure to check your typescript version first.
tsc -v
or
tsc
tsc command gives you more details.
If everything is configured properly and there are no issues. You only need to upgrade your typescript version at this point.
npm update -g typescript