术语“安装模块"未被识别为 cmdlet 的名称 [英] The term 'Install-Module' is not recognized as the name of a cmdlet

查看:92
本文介绍了术语“安装模块"未被识别为 cmdlet 的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照说明安装 poshgit.这样做我跑了:

I am following the directions to install poshgit. In doing so I ran:

安装模块 posh-git

错误:

术语安装模块"不被识别为 cmdlet、函数、脚本文件或可运行程序的名称.检查名称的拼写,或者如果包含路径,请验证路径是否正确并且再试一次.

The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and t ry again.

我运行了 $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 的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆