【发布时间】:2021-01-14 02:53:06
【问题描述】:
我正在使用 Microsoft Visual Code(第一次)。
我正在尝试按照这些步骤https://www.dsquintana.blog/create-an-academic-website-free-easy-2020/ 使用学术主题构建网站
安装 Hugo Extended 后scoop install git go hugo-extended
我运行接下来的步骤:现在在 Visual Studio Code 中打开一个新的终端窗口,方法是点击“终端菜单”,然后点击“新终端”。在终端窗口中输入以下命令:hugo server
我收到这条消息
hugo : The term 'hugo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ hugo server
+ ~~~~
+ CategoryInfo : ObjectNotFound: (hugo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Hugo 位于:C:\Users\CHRIS\scoop\apps\hugo-extended
网站是:C:\Users\CHRIS\OneDrive\Website\Website\starter-academic.github\starter-academic>
是否需要移动 Hugo 文件夹或添加路径?如果是这样,我该如何添加路径/文件夹?
感谢任何帮助。
【问题讨论】:
标签: powershell visual-studio-code hugo