1.1.1、安装

  1. yarn安装
  2. yarn add typescript -g
  3. yarn add ts-node -g
  4. tsc --version
  5. npm安装
  6. npm i typescript -g