Repository navigation
Replies: 1 comment 1 reply
|
确认是 npm i @midwayjs/typeorm@4 typeorm --save会装到 TypeORM 1.x。 先这样安装即可: npm i @midwayjs/typeorm@4 typeorm@~0.3.0 --save或者写到 {
"dependencies": {
"@midwayjs/typeorm": "^4.1.0",
"typeorm": "~0.3.0"
}
}如果项目里已经装过 这个文档命令确实容易被 npm |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem(描述问题)
拉取v4模版,根据文档命令npm i @midwayjs/typeorm@4 typeorm --save 会自动拉取1.0.0版本的typeorm,启动报错。目前只能是0.3.x版本的typeorm。
Midway Versions(Midway 版本)
4.1.1
All reactions