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,降低版本即可
在安装并尝试运行Typegoose项目时遇到错误,问题源于mongoose版本不兼容。更新mongoose到5.10.19或5.11版本可以解决此问题。降低mongoose版本至指定版本后,项目运行正常。
1002

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



