【发布时间】:2021-07-03 05:09:44
【问题描述】:
所以我尝试使用 mikro-orm 和 postgresql 在visualstudio 代码中创建b,但出现错误:
createdb lireddit
The name "createdb" is not recognized as the name of a cmdlet, function, script file, or executable program. Check the spelling
name, as well as the presence and correctness of the path, and then try again.
+ createdb <<<< lireddit
+ CategoryInfo : ObjectNotFound: (createdb:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
在此之前我用 yarn 安装了 mikro-orm 和 postgresql,但它似乎不起作用。
【问题讨论】:
-
你在运行什么命令?不会在
MikroORM.init()上自动创建数据库。 -
我在 powershell 中运行“createdb”,但我不知道,我应该运行 MikroORM.init() 吗?
-
我的意思是你没有做任何与 MikroORM 相关的事情,你正在尝试使用 pg CLI。也没有与 vscode 相关的内容。帮不上什么忙,我自己从未使用过 PG CLI,但我可以看到这个问题是如何被错误命名的,所以如果问题是关于他们可能从未听说过的工具或他们不使用的编辑器,那么不会吸引多少 PG 专家.
-
也许是关于powershell? stackoverflow.com/questions/24156451/…
标签: postgresql visual-studio-code mikro-orm