我刚刚在我的 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' 给了我一个不完整的命令列表?