install specific version of typescript 4.1.6 code example Example: install typescript using npm npm install -g typescript