卸载typescript
npm uninstall -g typescript
安装指定版本
npm install -g typescript@加上版本号
例如: npm install -g typescript@3.2.1
安装最新版本
npm install -g typescript```
卸载typescript
npm uninstall -g typescript
安装指定版本
npm install -g typescript@加上版本号
例如: npm install -g typescript@3.2.1
安装最新版本
npm install -g typescript```