当我尝试运行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] 请帮助我解决这个问题。