本教程基于上一篇教程
https://cloud.tencent.com/developer/article/1437298
安装
代码语言:javascript复制npm install inversify reflect-metadata --save
修改tsconfig.json
设置属性如下
代码语言:javascript复制"lib": ["es6", "dom"],
"types": ["reflect-metadata"],
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true