I am following the directions to install poshgit. In doing so I ran:
Install-Module posh-git
Error:
The term \'Install-M
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.
Do you have PsGet
installed? That's the Installing via PsGet section.
The section after that is the manual instructions:
Verify you have PowerShell 2.0 or better with $PSVersionTable.PSVersion
Verify execution of scripts is allowed with
Get-ExecutionPolicy
(should beRemoteSigned
orUnrestricted
). If scripts are not enabled, run PowerShell as Administrator and callSet-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm
.Verify that git can be run from PowerShell. If the command is not found, you will need to add a git alias or add
%ProgramFiles(x86)%\Git\cmd
(or%ProgramFiles%\Git\cmd
if you're still on 32-bit) to your PATH environment variable.Clone the posh-git repository to your local machine.
From the posh-git repository directory, run
.\install.ps1
.Enjoy!