我刚刚在我的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‘给了我一个不完整的命令列表?
发布于 2016-05-24 21:31:03
-V提供的是CLI的版本,而不是主要的gitbook模块( 2.6.7或3.0.0)。您可以获得每个版本的最新版本。
发布于 2020-02-11 04:08:36
看起来你没有2.1.3。这就是ENOENT告诉我们的。
对于任何已安装的版本,您也可以通过删除其安装目录来卸载它。例如:
rm -fr ~/.gitbook/versions/2.6.7https://stackoverflow.com/questions/36904974
复制相似问题