在Windows7上使用herokutoolbelt:3.43.12时出错,无法运行任何命令

2024-04-19 10:37:41 发布

您现在位置:Python中文网/ 问答频道 /正文

每当我运行任何命令时,它都会给我以下错误

panic: mkdir U:: The specified network name is no longer available.

goroutine 1 [running]:
panic(0x67d400, 0x12ab2800)
        /usr/local/go/src/runtime/panic.go:500 +0x331
main.must(0x7be130, 0x12ab2800)
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/io.go:189 +0x44
main.configHome(0x0, 0x0)
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/filesystem.go:66 +0
x157
main.init()
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/filesystem.go:27 +0
x2c6
panic: mkdir U:: The specified network name is no longer available.

goroutine 1 [running]:
panic(0x67d400, 0x12cb2800)
        /usr/local/go/src/runtime/panic.go:500 +0x331
main.must(0x7be130, 0x12cb2800)
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/io.go:189 +0x44
main.configHome(0x0, 0x0)
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/filesystem.go:66 +0
x157
main.init()
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/filesystem.go:27 +0
x2c6
panic: mkdir U:: The specified network name is no longer available.

goroutine 1 [running]:
panic(0x67d400, 0x12c527e0)
        /usr/local/go/src/runtime/panic.go:500 +0x331
main.must(0x7be130, 0x12c527e0)
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/io.go:189 +0x44
main.configHome(0x0, 0x0)
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/filesystem.go:66 +0
x157
main.init()
        /home/ubuntu/.go_workspace/src/github.com/heroku/cli/filesystem.go:27 +0
x2c6
 !    error getting commands pid 18844 exit 2

我不明白,我下载了windows工具,为什么要用ubuntu的地址,我甚至卸载了它,重新安装了它。。。。你知道吗

编辑:

我单独安装了另一个gitbash,当我试图从那里登录时,它要求我从命令提示符,当我在另一个git bash(MINGW32)中键入“start cmd”时,它打开了一个新的cmd,我在那里尝试了heroku命令,它成功了…….这是什么魔法!!!你知道吗

所以如果我开始命令行从普通方法来看,hereoku命令会给出上述错误,但是如果我从mingw32 shell启动它并键入heroku,它就可以工作了。。。你知道吗


Tags: the命令srcgithubcomgohomeheroku