install typescript mac npm code example Example: install typescript mac $ sudo npm install -g typescript