目录
报错内容:
注意:其实只是个警告内容,一般来说没有影响项目启动报错,如果影响了就换个版本安装用;
=============
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.5.0
YOUR TYPESCRIPT VERSION: 4.6.3
Please only submit bug reports when using the officially supported version.
=============
解决办法:
1、卸载旧包
npm uninstall -g typescript
2、安装
安装最新包
npm install -g typescript
安装特定的包
npm install -g typescript@{版本号,比如4.5.5}
本文档介绍了在遇到 TypeScript 版本不被 @typescript-eslint/typescript-estree 官方支持的警告时,如何解决该问题。包括卸载旧版 TypeScript、安装最新版或特定版本的详细步骤,帮助开发者保持项目正常运行。
8953

被折叠的 条评论
为什么被折叠?



