1

我尝试使用 GVM 工具安装 Grails,在此之前我将 GVM 从一个非常旧的版本更新到最后一个版本。在提示的建议下,我执行gvm install grails了,连接问题后失败。我尝试通过键入相同的命令再次安装 Grails。

Found a previously downloaded grails 3.0.1 archive.
Not downloading it again...
End-of-central-directory signature not found.  Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.  In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one 
of /home/myhome/.gvm/archives/grails-3.0.1.zip or
/home/myhome/.gvm/archives/grails-3.0.1.zip.zip, 
and cannot find /home/myhome/.gvm/archives/grails-3.0.1.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.

我再次执行gvm install grails,它给了我上面同样的错误,我试图手动删除文件,但我得到一个错误,他们没有找到。

4

1 回答 1

2

尝试:

gvm list grails

这将为您提供所有已安装候选人的列表。如果您安装了候选项,您应该会看到一个星号 (*) 符号,并会看到一个箭头来显示正在使用的候选项。

如果他们真的出现。尝试通过指定候选人以及安装来卸载它

gvm uninstall grails 3.0.1

然后尝试再次运行安装命令。

它通常确实有效。

于 2015-05-30T22:18:55.727 回答