Skip to content

Issue in Installation #25

Description

@mimconsulting

When i tried to Install-Module HCPosh I receive a prompt Do you want PowerShellGet to install and import the NuGet provider now?

When I say Yes i get an error Unable to download. Check your internet connection

Per https://stackoverflow.com/questions/55826791/powershell-installing-nuget-says-unable-to-access-internet-but-i-actually-can, users may need to run [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 first to allow the NuGet Package Manager to be successfully installed.

For me, once i ran [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 I was able to successfully run Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force and from there was able to install HCPosh.

I've tried installing this in the past and got blacked by this issue, so I thought I'd suggest this as an issue and recommend you update the readme. Perhaps something as simple as: If you encounter errors when running Install-Module HCPosh, follow the directions here (link to the stackoverflow article) to bypass the network errors

-Aaron Johnson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions