使用windows powershell安装poshgit时出错

使用windows powershell安装poshgit时出错,git,powershell,installation,Git,Powershell,Installation,我试图通过Chocolate在一台日本Windows7企业版计算机上安装poshgit,但遇到安装错误 我使用powershell 2.0作为管理员,并已将执行策略设置为remotesigned 执行cinst poshgit命令,我可以看到git是第一次下载并安装的,没有任何问题 然后下载Poshgit,并在安装过程中给出以下错误 poshgit v0.5.0.201401009 Downloading poshgit 64 bit from 'https://github.com

我试图通过Chocolate在一台日本Windows7企业版计算机上安装poshgit,但遇到安装错误

我使用powershell 2.0作为管理员,并已将执行策略设置为remotesigned

执行cinst poshgit命令,我可以看到git是第一次下载并安装的,没有任何问题

然后下载Poshgit,并在安装过程中给出以下错误

    poshgit v0.5.0.201401009
Downloading poshgit 64 bit
  from 'https://github.com/dahlbyk/posh-git/zipball/master'
Extracting C:\Users\soukaei\AppData\Local\Temp\chocolatey\poshgit\poshgitInstall.zip to C:\tools\poshgit...

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        11/17/2014     15:47            poshgit
C:\tools\poshgit
poshgit has finished successfully! The chocolatey gods have answered your request!
Write-Error : poshgit did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] Unable to index into an object of type System.IO.DirectoryInfo.
-----------------------
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:30 char:14
+   Write-Error <<<<  $errorMessage
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Write-Error : Package 'poshgit v0.5.0.201401009' did not install successfully: Unable to index into an object of type S
ystem.IO.DirectoryInfo.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:28
+                 Write-Error <<<<  "Package `'$installedPackageName v$installedPackageVersion`' did not install succes
sfully: $($_.Exception.Message)"
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Finished installing 'poshgit' and dependencies - if errors not shown in console, none detected. Check log for errors if
unsure.
谁能帮我找出我做错了什么?
谢谢你

谢谢你提供的信息

我没有运气去吃巧克力,所以选择了官方网站上提供的手工方法


git pull和运行设置没有给我任何错误和问题解决。

不熟悉具体问题,但是在网站上找到了一些信息,他们有一种类似于使用PsGet的替代安装方法:newobject Net.WebClient.DownloadStringhttp://psget.net/GetPsGet.ps1 |iex安装模块posh git不知道这是不是一个好主意。也可能值得检查,如果两者都没有帮助,则可能值得联系poshgit支持人员。