«

tsc : 无法将“tsc”项识别为 cmdlet、函数、脚本文件或可运行程序的名称

时间:2023-7-25 10:52     作者:小诸葛     分类: typescript     正在检查是否收录...


vscod使用tsc命令报错解决办法:

1.使用yarn 全局安装

yarn global add typescript

本地安装

yarn add typescript

本地卸载

yarn remove typescript

全局卸载

yarn global remove typescript

2.使用npm全局安装

npm install -g typescript

本地安装

npm install  typescript

全局卸载

npm uninstall -g typescript

本地卸载

npm uninstall  typescript

tsc typescript

推荐阅读:


扫描二维码,在手机上阅读