Skip to content

Install-PSResource did not install module and is silent about it #154

Closed
@rkeithhill

Description

@rkeithhill

I tried to install PSReadLine 2.1.0-beta2 like so:

06-06 13:42:09 6> Install-PSResource PSReadLine -Prerelease -TrustRepository

And got no output so I assumed it installed. But no, it apparently didn't. When I run this with -Verbose I see this:

06-06 13:42:40 7> Install-PSResource PSReadLine -Prerelease -TrustRepository -Verbose
VERBOSE: Current user scope installation path: C:\Users\Keith\Documents\PowerShell
VERBOSE: All users scope installation path: C:\Program Files\PowerShell
VERBOSE: Scope is: CurrentUser

If Install-PSResource didn't actually install the module I'd like to at least see a message (or warning) along those lines.

This is on PSGet 3.0.0-beta4 running on PS 7.0.1 on Windows 10 2004. Also, I had PSRL 2.1.0-beta1 installed with PSGet 2.2.x in ~\Documents\PowerShell\Modules\PSReadLine\2.1.0. It appears something also installed PSRL directly in ~\Documents\PowerShell\Modules\PSReadLine. Anyway, I removed the PSRL folder and tried again:

06-06 14:13:32 1> Install-PSResource PSReadLine -Prerelease -TrustRepository -Verbose
VERBOSE: Current user scope installation path: C:\Users\Keith\Documents\PowerShell
VERBOSE: All users scope installation path: C:\Program Files\PowerShell
VERBOSE: Scope is: CurrentUser
VERBOSE: Verbose statement

This time it installed into ~\Documents\PowerShell\Modules\PSReadLine\2.1.0-betat2. Yay. So I'm not sure exactly what this command did earlier when PSRL 2.1.0-beta1 was installed but it did not install anything i.e. PS still loaded 2.1.0-beta1.

Argh! Now neither PS 7.0.1 nor PS 7.1.0-preview3 will load from that 2.1.0-beta2 directory. Off to rename it to remove the -beta2. Dang! I liked that naming convention because it allows installing new prerelease versions without running into "file in use" conflicts.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions