Score:0

Powershell Import-Module error when selecting preview version 'Cannot convert value "3.0.1-preview" to type "System.Version"'

us flag

I'm trying to install a preview version of the MicrosoftTeams PowerShell module using the following command:

Install-Module -Name MicrosoftTeams -RequiredVersion 3.0.1-preview -AllowPrerelease

Unfortunately I'm getting an error:

`'Cannot convert value "3.0.1-preview" to type "System.Version"'

I tried updating PowerShell, and via Windows Terminal, but received the same error message.

Score:0
us flag

For those experiencing this issue, I solved it by updating my version of PowerShellGet in PowerShell.

Install-Module PowerShellGet –Repository PSGallery –Force

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.