I am following the directions to install poshgit. In doing so I ran:
Install-Module posh-git
Error:
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.
I ran $PSVersionTable.PSVersion
: result = 2.0.-1.-1
Is Install-Module
an addon? How can I run this command?
Do you have
PsGet
installed? That's the Installing via PsGet section.The section after that is the manual instructions:
Another GUI based option to fix this error is to download the PackageManagement PowerShell Modules (msi installer) from Microsoft website and install the modules.
Once this is installed you will not get "'Install-Module' is not recognized as the name of a cmdlet" error.