2016-04-28 64 views
0

我刚刚在我的Ubuntu 14.04上安装了gitboot。很快我发现它不稳定。 gitbook -h显示以下内容:像“构建”,“服务”,“PDF”如何卸载粘性gitbook旧版

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 

必不可少的命令,甚至在帮助信息不!不过,我可以使用'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'给了我一个不完整的命令列表?

回答

0

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