typegoose
install
npm i -s @typegoose/typegoose # install typegoose itself
npm i -s mongoose # install peer-dependency mongoose
npm i -D @types/mongoose # install all types for mongoose - this is required for typegoose to work in TypeScript
安装之后运行项目报如下错误,百思不得其解

由于mongoose版本的原因
Update to work with mongoose 5.10.19 / 5.11
npm install mongoose@5.10.19,降低版本即可 |