问题:编译之后提示 cannot find name 'console'
解决方案:// 1. 删掉原来的包 npm uninstall ts-node -g // 2. 下载指定的包(这个版本试了是可以的) npm i -g ts-node@8.5.4