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

これにより、インストールされているすべての候補のリストが表示されます。候補がインストールされている場合はアスタリスク (*) 記号が表示され、どの候補が使用されているかを示す矢印が表示されます。

彼らが現れたら。installと一緒に候補を指定してアンインストールしてみる

gvm uninstall grails 3.0.1

次に、インストール コマンドを再度実行してみます。

通常は機能します。

于 2015-05-30T22:18:55.727 に答える