首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用windows powershell安装poshgit时出错

使用windows powershell安装poshgit时出错
EN

Stack Overflow用户
提问于 2014-11-17 15:05:29
回答 1查看 759关注 0票数 1

我试图通过巧克力在日语的Windows7企业版机器上安装poshgit,但遇到了安装错误。

我以管理员身份使用Powershell2.0,并已将执行策略设置为remotesigned。

执行命令"cinst poshgit“,我可以看到git首先被下载并安装,没有任何问题。

然后下载Poshgit,并在安装过程中显示以下错误。

代码语言:javascript
复制
    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.

有人能帮我找出我做错了什么吗?谢谢

EN

回答 1

Stack Overflow用户

发布于 2014-11-20 11:06:23

谢谢你提供的信息。

我没有机会走巧克力路线,所以我选择了官方网站上提供的手动方法。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26967275

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档