LoginSignup
0
0

More than 5 years have passed since last update.

Windwos環境でposh-gvm使い続けててselfupdateできない!ってなったらUpdate-Module posh-gvmしましょう

Posted at

posh-gvm 使おうとしてこんなことになって

PS> gvm ls grails
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
:(以下略)

selfupdate してもoffline mode!

PS> gvm selfupdate
==== UPDATE AVAILABLE ==========================================================

A new version is available. Please consider to execute:

    gvm selfupdate

================================================================================
Update list of available candidates...
Usage: gvm <command> <candidate> [version]
    gvm offline <enable|disable>

    commands:
        install   or i    <candidate> [version]
        uninstall or rm   <candidate> <version>
        list      or ls   <candidate>
        use       or u    <candidate> [version]
        default   or d    <candidate> [version]
        current   or c    [candidate]
        version   or v
        broadcast or b
        help      or h
        offline           <enable|disable>
        selfupdate        [-Force]
        flush             <candidates|broadcast|archives|temp>
    candidate  :  asciidoctorj, crash, gaiden, glide, gradle, grails, griffon, groovy, groovyserv, jbake, lazybones, springboot, vertx

    version    :  where optional, defaults to latest stable if not provided

eg: gvm install groovy
警告: This command is not available in offline mode.

そんなときは Update-Module posh-gvm しましょう。

PS> Update-Module posh-gvm
"C:\Users\Me\Documents\WindowsPowerShell\Modules\" is added to the PSModulePath environment variable
Module posh-gvm was successfully updated.

ちゃんと selfupdate できるようになります。

PS> gvm selfupdate
==== UPDATE AVAILABLE ==========================================================

A new version is available. Please consider to execute:

    gvm selfupdate

================================================================================
Update list of available candidates...
PS> gvm ls grails
==== BROADCAST =================================================================
* 03/03/16: Grails 3.1.3 released on SDKMAN! #grailsfw
* 03/03/16: Grails 2.5.4 released on SDKMAN! #grailsfw
* 01/03/16: Grails 3.1.2 released on SDKMAN! #grailsfw
================================================================================

================================================================================
Available Grails Versions
================================================================================
     3.1.3                3.0.3                2.5.0              * 2.3.11
     3.1.2                3.0.2              * 2.4.5                2.3.10
     3.1.1                3.0.15             * 2.4.4                2.3.1
     3.1.0.RC2            3.0.14             * 2.4.3                2.3.0
     3.1.0.RC1            3.0.13             * 2.4.2                2.2.5
     3.1.0.M3             3.0.12               2.4.1                2.2.4
     3.1.0.M2             3.0.11             * 2.4.0                2.2.3
     3.1.0.M1             3.0.10             * 2.3.9                2.2.2
     3.1.0                3.0.1                2.3.8                2.2.1
     3.0.9                3.0.0                2.3.7                2.2.0
   * 3.0.8                2.5.5.BUILD-SNA      2.3.6                2.1.5
     3.0.7                2.5.4                2.3.5                2.1.4
     3.0.6                2.5.3                2.3.4                2.1.3
     3.0.5                2.5.2                2.3.3                2.1.2
     3.0.4                2.5.1                2.3.2                2.1.1

================================================================================
+ - local version
* - installed
> - currently in use
================================================================================

関連情報

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0