Skip to content

Installation issues with Powershell 7 and Install-Module #989

@e-Dan-K

Description

@e-Dan-K

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions