安装posh-git -查看此处https://github.com/dahlbyk/posh-git
如果我刚刚安装了PsGet,然后运行:
Install-Module posh-git工作正常。
但是如果我关闭并重新启动Powershell,我会得到:
The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program.当我尝试运行它的时候。
知道为什么吗?
发布于 2015-04-03 12:06:13
安装模块后,通常使用Import-Module重新加载它,例如:
Import-Module posh-git也就是说,如果您尝试从该模块执行命令,则PowerShell (V3及更高版本)的后续版本将自动加载该模块。这里假设PowerShell可以发现posh-git模块中的命令。
https://stackoverflow.com/questions/29420002
复制相似问题