术语"..."未被识别为 cmdlet 与代码的名称。*四开*



我一直很乐意使用"render"按钮在VS代码中呈现quarto文档。然后第二天我收到错误(忽略xxxx代替我的用户名(:

Uni : The term 'Uni' 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:50
+ cmd /C"quarto preview "c:UsersxxxxDropbox (Uni of Auckland)Qui ...
+                                                  ~~~
+ CategoryInfo          : ObjectNotFound: (Uni:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

路径或空白似乎有问题,堆栈上有很多问题,使用不同的软件引用相同的问题,但对我没有帮助:

  • 术语'';未被识别为cmdlet、函数、脚本文件的名称

  • 术语';go';未被识别为cmdlet、函数、脚本文件或可操作程序的名称

  • go:术语';go';未被识别为cmdlet、函数、脚本文件或可操作程序的名称

  • 术语';appcmd';未被识别为cmdlet 的名称

如果我运行命令quarto render .example.qmd,它会显示得很好。或者,如果我将工作目录移动到桌面,则渲染按钮将再次工作。我不能更改投递箱的名称,因为它是由制度管理的。不知道一夜之间发生了什么变化。。。我很想重新获得使用渲染按钮的功能。

有什么想法吗?感谢Stack社区!

问题是双引号是嵌套的。传递给cmd/C的命令有一组双引号,文件路径有另一组。

尝试将默认终端更改为cmd/C以外的其他终端。以下是如何更改您的终端-https://www.shanebart.com/set-default-vscode-terminal/

最新更新