How to update typescript to the latest version using npm

Update typescript to the latest version using npm

You can update typescript to the latest version using npm :

  1. Check current version :
    tsc --version

  2. Update npm :
    npm install npm@latest -g

  3. Upgrade typescript :
    npm -g upgrade typescript