原来我一直用的是powershell 5,而不是powershell7

原来我一直用的是powershell 5,而不是powershell7
原来我一直用的是powershell 5,而不是powershell7

输入 $PSVersionTable 可查看版本

image

执行 winget install --id Microsoft.PowerShell --source winget 安装最新版本

image

安装后,启动还是 powershell5 不是 7,要执行pwsh切换后才是

image

这里选择 PowerShell,或者创建一个PowerShell 7

image
再开终端,就是PowerShell 7 了
image

3 个帖子 - 2 位参与者

阅读完整话题

来源: linux.do查看原文