Posh-git: Issue When Updating To Newest Beta v1.0.0-beta4

Created on 17 Mar 2020  路  2Comments  路  Source: dahlbyk/posh-git

System Details

  • posh-git version/path: 1.0.0 beta3 ~\OneDrive\Documents\PowerShell\Modules\posh-git1.0.0
  • PowerShell version: 7.0.0
  • git version 2.25.1.windows.1
  • OS: Microsoft Windows NT 10.0.18363.0

Issue Description

When I try to upgrade to the newest version, v1.0.0-beta4, I am getting the blow error. I am also attaching a screenshot.

Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

image

Most helpful comment

There are issues with PoweShellGet/PackageManagement when it comes to pre-release packages. Try this:

Install-Module posh-git -AllowPrerelease -Scope CurrentUser -Force

If that doesn't work, manually remove the current posh-git module folder and try the above again.

All 2 comments

There are issues with PoweShellGet/PackageManagement when it comes to pre-release packages. Try this:

Install-Module posh-git -AllowPrerelease -Scope CurrentUser -Force

If that doesn't work, manually remove the current posh-git module folder and try the above again.

I had to run Remove-Module posh-git first then remove the folder and then the command above worked. I will check for a bug on PowerShellGet/PackageManagement and comment there. Thank you for your help.

Was this page helpful?
0 / 5 - 0 ratings