这两天在git下载的docfx.zip 。在安装过程中总是闪退,而加入环境变量后,执行提示:config file  docfx.json does not exist。所以我选择chocolatey 安装方法。

一 首先安装chocolatey工具

1.打开cmd命令

输入一下命令@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

并执行

当出现chocolatey is now ready时,表示安装完毕。

二 安装docfx

1 打开cmd命令

输入cinst docfx -y

执行命令,等待安装完成就可以了。

posted on 2017-09-15 16:28  无聊的不知者  阅读(141)  评论(0编辑  收藏  举报