install typescript npm windows code example Example 1: install typescript npm install -g typescript Example 2: npm typescript npm install -g typescript