运行 npm i typescript -D 在开发环境安装 typescript 包, 之后执行 npx tsc --init 生成 tsconfig.json 文件package.json中: "type": "module",//指定type为module则可以使用improt导入模块,不指定则使用require1 keyword7 dependencies2 dependents1 versionclichalkcommanderdownload-git-repoinquirerlog-symbolsorapacote@everything-registry/sub-chunk-3201@infinitebrahmanuniverse/nolb-yd1.0.02 years ago