npm install tsc code example Example 1: install typescript npm install -g typescript Example 2: tsc install command npm install -g typescript