问题描述
我正在按照说明安装 poshgit.这样做我跑了:
I am following the directions to install poshgit. In doing so I ran:
安装模块 posh-git
错误:
术语安装模块"不被识别为 cmdlet、函数、脚本文件或可运行程序的名称.检查名称的拼写,或者如果包含路径,请验证路径是否正确并且再试一次.
我运行了 $PSVersionTable.PSVersion
: result = 2.0.-1.-1
I ran $PSVersionTable.PSVersion
: result = 2.0.-1.-1
Install-Module
是插件吗?如何运行此命令?
Is Install-Module
an addon? How can I run this command?
推荐答案
修复此错误的另一个基于 GUI 的选项是下载 PackageManagement PowerShell 模块(msi 安装程序) 来自 Microsoft 网站并安装模块.
Another GUI based option to fix this error is to download the PackageManagement PowerShell Modules (msi installer) from Microsoft website and install the modules.
安装后,您将不会收到'Install-Module' 未被识别为 cmdlet 的名称"错误.
Once this is installed you will not get "'Install-Module' is not recognized as the name of a cmdlet" error.
这篇关于术语“安装模块"未被识别为 cmdlet 的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!