简体   繁体   English

Install-Module:术语“ Install-Module”未被识别为cmdlet的名称(PS版本5.x !!)

[英]Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet (PS ver. 5.x !!)

i believe the title is self explanatory. 我相信标题是不言自明的。 The install-module isn't working anymore. 安装模块不再起作用。 I had it running earlier, but after downloading NuGet through powershell the module doesn't work anymore at all, giving me the error message shown in the title. 我早先运行过它,但是在通过powershell下载NuGet之后,该模块不再起作用了,这给了我标题中显示的错误消息。 I'm running on Windows 10, Powershell Ver.: 5.1.16299.15. 我正在Windows 10 Powershell版本上运行:5.1.16299.15。

The question has been asked before, but on other threads the problem was the Powershell version, which isn't the case for me. 之前已经问过这个问题,但是在其他线程上,问题是Powershell版本,对我而言不是这种情况。

Gotcha! 知道了! - From above discussions, -通过以上讨论,

Did you change $env:PSModulePath ? 您更改了$env:PSModulePath吗? Nuget installation would not change it. Nuget安装不会更改它。 You can add C:\\Program Files\\WindowsPowerShell\\Modules in the list and try. 您可以在列表中添加C:\\Program Files\\WindowsPowerShell\\Modules并尝试。

$env:PSModulePath += ';C:\Program Files\WindowsPowerShell\Modules'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装模块:术语“安装模块”未被识别为 cmdlet 的名称 - Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet 术语“安装模块”不被识别为cmdlet的名称 - The term 'Install-Module' is not recognized as the name of a cmdlet 安装模块不可用 - 无法识别为 cmdlet 的名称 - Install-Module not available - not recognized as a name of a cmdlet 术语“安装模块”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称 - The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program PowerShell x64 无法识别 Install-Module 无法识别为 cmdlet 的名称 - PowerShell x64 does not recognize Install-Module is not recognized as the name of the cmdlet 运行“Install-Module”时出错:无法识别为 cmdlet、function、脚本文件或可运行程序的名称 - Error when running 'Install-Module': is not recognized as the name of a cmdlet, function, script file, or operable program 安装模块在哪里<module name>从中获取模块?</module> - Where does Install-Module <module name> fetch modules from? 安装模块 -Name AzureAD -Scope CurrentUser -Force - Install-Module -Name AzureAD -Scope CurrentUser -Force PowerShell 安装模块本地 vs CurrentUser - PowerShell Install-Module Local vs CurrentUser 安装模块PowerShellGet时发出警告 - Warning while install-module PowerShellGet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM