尝试在 oh my posh v3 中设置主题时出错

问题描述

当我尝试运行 Set-PoshPrompt -Theme jandedobbeleer 代码我收到这样的错误

Invoke-Expression : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Command'.
Specified method is not supported.
At C:\Users\Samsuddin\Documents\WindowsPowerShell\Modules\oh-my-posh\3.140.0\oh-my-posh.psm1:65 char:23
+ ... ke-Expression (& $poshCommand --init --shell=pwsh --config="$config")
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-Expression],ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.InvokeExpressionCommand

我的电脑运行的是 windows 7,powershell 版本是 5.1。我也正确导入了模块。[在此处输入图片描述][1] 请帮我解决这个问题。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)