我试图通过巧克力在日语的Windows7企业版机器上安装poshgit,但遇到了安装错误。
我以管理员身份使用Powershell2.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.有人能帮我找出我做错了什么吗?谢谢
发布于 2014-11-20 11:06:23
谢谢你提供的信息。
我没有机会走巧克力路线,所以我选择了官方网站上提供的手动方法。
git拉和运行设置没有给我任何错误和问题得到解决。
https://stackoverflow.com/questions/26967275
复制相似问题