Skip to content

An error when registering the default repository #368

@ferenczy

Description

@ferenczy

I needed to set up a proxy server for the default PSGallery repository, and because the proxy configuration part of the Register-PSRepository command, I needed to unregister the repository first:

Unregister-PSRepository -Name PSGallery

Then I tried to register it back (removed the proxy configurationsince it doesn't have any impact on the issue):

Register-PSRepository -Default

The repository has actually been registered, but the command produced the following error:

Value cannot be null.
Parameter name: input

According the documentation, there're no mandatory parameters when using the command with the -Default switch (and even that one is optional).

Powershell version: 7.1.3
PowerShellGet version: 2.2.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions