【问题标题】:how to uninstall sticky gitbook old version如何卸载粘滞的 gitbook 旧版本
【发布时间】:2016-04-28 03:57:27
【问题描述】:

我刚刚在我的 ubuntu 14.04 上安装了 gitboot。很快我发现它不稳定。 gitbook -h 显示如下:

home: gitbook -h

Usage: gitbook [options] [command]


Commands:

ls                        List versions installed locally
current                   Display currently activated version
ls-remote                 List remote versions available for install
fetch [version]           Download and install a <version>
alias [folder] [version]  Set an alias named <version> pointing to <folder>
uninstall [version]       Uninstall a version
update [tag]              Update to the latest version of GitBook
help                      List commands for GitBook
*                         run a command with a specific gitbook version

Options:

-h, --help               output usage information
-V, --version            output the version number
-v, --gitbook [version]  specify GitBook version to use
-d, --debug              enable verbose error

“build”、“serve”、“pdf”等基本命令甚至不在帮助信息中!不过,我可以使用“gitbook pdf”或“gitbook serve”。所以我检查了它的版本,发现它是一个非常旧的2.1.3。所以我用'gitbook update'来获得2.6.7;并且还安装了最新版本。现在我有:

home: gitbook ls
GitBook Versions Installed:

* 3.0.0-pre.9
  2.6.7

Run "gitbook update" to update to the latest version.
home: gitbook -V
      2.1.3
home: 

我想摆脱旧版本2.1.3,但失败了。

home: gitbook uninstall 2.1.3

Error: ENOENT, lstat '/home/chensy/.gitbook/versions/2.1.3'

知道如何删除 2.1.3 吗?为什么 'gitbook -h' 给了我一个不完整的命令列表?

【问题讨论】:

    标签: uninstallation gitbook


    【解决方案1】:

    -V 给出 CLI 的版本,而不是主 gitbook 模块(即 2.6.7 或 3.0.0)。 您拥有每个版本的最新版本。

    【讨论】:

      【解决方案2】:

      您似乎没有2.1.3。那是ENOENT 告诉。

      对于任何已安装的版本,您也可以通过删除其安装目录来卸载它。例如

      rm -fr ~/.gitbook/versions/2.6.7
      

      【讨论】:

        猜你喜欢
        • 2012-04-19
        • 2016-08-30
        • 1970-01-01
        • 2022-07-07
        • 2013-01-09
        • 2013-02-17
        • 2011-08-19
        • 2021-05-24
        • 1970-01-01
        相关资源
        最近更新 更多