install latest typescript in angulat code example Example: install typescript using npm npm install -g typescript