注意:我在windows上。
在我的计算机上安装postgreSQL后,尝试使用heroku pg:psql时出现以下错误:
--> Connecting to postgresql-defined-56809 ! The local psql command could not be located. For help installing psql, see ! https://devcenter.heroku.com/articles/heroku-postgresql#local-setup
psql命令有效,并且psql --version返回的版本与heroku pg:info返回的版本相同,我的数据库在heroku上使用该版本。
我已经按照链接中的说明进行了操作,但它仍然不起作用(好吧,我从一开始就这样做了)。我甚至重启了我的电脑,但它仍然不能工作。
编辑:发现psql在powershell中运行,但不在cmd中运行
发布于 2019-11-30 23:30:51
好的,在尝试从cmd设置路径后,我想我搞砸了一些东西,heroku命令不再起作用了,我重新安装了heroku,现在一切都正常了。真是浪费时间。
https://stackoverflow.com/questions/59115775
复制相似问题