iex安装模块的Powershell错误失败
我在这里指挥 但是我遇到了这个错误(我在管理模式下运行) 调用表达式:找不到接受参数“posh git”的位置参数。 第1行字符:78iex安装模块的Powershell错误失败,powershell,Powershell,我在这里指挥 但是我遇到了这个错误(我在管理模式下运行) 调用表达式:找不到接受参数“posh git”的位置参数。 第1行字符:78 。。。字符串(“http://psget.net/GetPsGet.ps1)iex安装模块posh git CategoryInfo:InvalidArgument:(:)[Invoke Expression],ParameterBindingException FullyQualifiedErrorId:PositionParameterNotFound
- 。。。字符串(“http://psget.net/GetPsGet.ps1)iex安装模块posh git
-
- CategoryInfo:InvalidArgument:(:)[Invoke Expression],ParameterBindingException
- FullyQualifiedErrorId:PositionParameterNotFound,Microsoft.PowerShell.Commands.InvokeeExpressionCommand
首先,在尝试下载之前,您应该确保正在下载的内容。考虑一下这个帖子是从2011开始的。脚本psget.net中的链接加载一个通用的“购买此域”页面 接下来,
Invoke Expression
不接受其他参数,只接受您尝试导入的命令
最后,如果您想安装Posh Git
,只需运行
# Requires admin, installs for all users
Install-Module Posh-Git
或
~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Requires admin, installs for all users
Install-Module Posh-Git
# Does not require admin and installs for current user
Install-Module Posh-Git -Scope CurrentUser