小工具知识网

当前位置: 首页 > 行业知识 > typeScript

行业知识

typeScript

2026-11-26 23:15:00 来源:互联网转载

安装:��

()

1、npm install -g typecript@latest 

2、npm i -g ts-node 

()

3、vue add typescript   // 加入

4、npm install -D typescript

安装 、、 切记查看自己文件原先是什么版本的

package.json

"typescript": "^5.4.2",

package-lock.json

"typescript": "^4.2.5",

版本又问题也不能行

一直提示错误  TS1005:'=' expected.

上一篇:淘宝服务器报错怎么办?

下一篇:一台轻量云服务器能干什么