-
-
Notifications
You must be signed in to change notification settings - Fork 823
Description
I was trying to install posh-git under Powershell 7.5 using the README instructions, and the results were that it worked perfect in my Adminstrator windows, but the module was never visible under the normal user window.
After fiddling with Get-Module -ListAvailable , I finally figured out what was up: Installing via PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force was putting the module in my Documents directory, rather than the Powershell modules directory, and (for some reason that I still don't know) only Administrator looks in that directory for available modules.
I switched the install command to just PowerShellGet\Install-Module posh-git and it installed in the regular Powershell modules directory and started working perfect from all windows/users.
Is there a reason the install instructions recommend -Scope CurrentUser?