在執(zhí)行下面命令的時候報錯
Install-Module PSReadLine -AllowPrerelease -Force # AllowPrerelease parameter cannot be found
解決辦法
轉(zhuǎn)載于 AllowPrerelease parameter cannot be found · Issue #3094 · MicrosoftDocs/OfficeDocs-SkypeForBusiness · GitHub
Install-Module -Name PackageManagement -Repository PSGallery -Force
Install-Module -Name PowerShellGet -Repository PSGallery -Force
#Then restart shell (重啟終端)
Install-Module -Name MicrosoftStaffHub -AllowPrerelease -Force