Docsify 安装

2020-09-14 10:16:30 浏览数 (1)

首先查看你的本地命令行中是否安装了 Docsify。

运行 docsify -v

如果显示:

代码语言:javascript复制
C:WorkDirRepositorycwiki-us-docsspring-boot-docs>docsify -v
'docsify' is not recognized as an internal or external command,
operable program or batch file.

就说明你的系统中没有安装。

如果你已经装了 npm 或者 python 的话,

运行命令:

代码语言:javascript复制
npm i docsify-cli -g

进行安装。

计算机将会输出:

代码语言:javascript复制
C:WorkDirRepositorycwiki-us-docsspring-boot-docs>npm i docsify-cli -g
C:UsersyhuAppDataRoamingnpmdocsify -> C:UsersyhuAppDataRoamingnpmnode_modulesdocsify-clibindocsify

> docsify@4.11.6 postinstall C:UsersyhuAppDataRoamingnpmnode_modulesdocsify-clinode_modulesdocsify
> opencollective-postinstall

Thank you for using docsify!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/docsify/donate

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modulesdocsify-clinode_moduleschokidarnode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

  docsify-cli@4.4.1
added 204 packages from 90 contributors in 16.035s

再次运行命令查看版本。

如果能够显示版本号的话,就说明已经安装成功了。

代码语言:javascript复制
C:WorkDirRepositorycwiki-us-docsspring-boot-docs>docsify -v

docsify-cli version:
  4.4.1

https://www.ossez.com/t/docsify/476

0 人点赞