Closed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
Change PSModulePath using the directions in about_PowerShell_Config PSModulePath.
Create a powershell.cofig.json
in Split-Path $PROFILE
with the following:
{
"PSModulePath": "C:\\PowerShell\Modules"
}
Execute: Install-PSResource -Name KeepAlive
Expected behavior
PowerShell module KeepAlive would be installed in C:\PowerShell\Modules.
A solution would be to allow for a PowerShellGet config file, similar to the about_PowerShell_Config, to
set the different paths for PowerShellGet. This would also solve #195
Actual behavior
Module was installed in `Split-Path $PROFILE`.
Error details
No error returned.
Environment data
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 3.0.12 beta PowerShellGet {Find-PSResource, Get-PSResource, Get-PSResourceR…
Name Value
---- -----
PSVersion 7.2.1
PSEdition Core
GitCommitId 7.2.1
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response