Я пытаюсь установить poshgit через шоколадный на японском компьютере Windows 7 Enterprise и запуская ошибку установки.Ошибка при установке poshgit с окнами powershell
Я использую 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.
Может ли кто-нибудь помочь мне выяснить, что я делаю неправильно? Спасибо
Не знакомы с проблемой конкретно, но нашел некоторую информацию более в [этом блоге.] (Http://www.hanselman.com/blog/PromptsAndDirectoriesEvenBetterGitAndMercurialWithPowerShell.aspx) Они имеют то, что выглядит как альтернативный метод установки с использованием PsGet: '(new-object Net.WebClient) .DownloadString (" http://psget.net/GetPsGet.ps1 ") | iex install-module posh-git' Не знаю, если это хорошая идея или нет. Также может быть стоит проверить [этот вопрос SO] (http://stackoverflow.com/questions/23434344/boo-to-the-chocolatey-gods). Если ни одна из них не поможет, возможно, стоит обратиться к поддержке пошгита. –