# Module Install Issues from PowershellGallery

**URL:** <https://forums.powershell.org/t/module-install-issues-from-powershellgallery/11939>\
**Category:** PowerShell Help\
**Created:** [January 22, 2019, 7:45pm UTC](https://forums.powershell.org/t/module-install-issues-from-powershellgallery/11939 "2019-01-22T19:45:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![valdesnyc](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@valdesnyc](https://forums.powershell.org/u/valdesnyc)\
**Post date:** [January 22, 2019, 7:45pm UTC](https://forums.powershell.org/t/module-install-issues-from-powershellgallery/11939/1 "2019-01-22T19:45:07Z")

</div>

Has anyone been experiencing issues installing modules from PSGallery?

I was installing modules on my new work computer and kept getting error messages indicating the either the source location was invalid.

For trying to install the VMware.PowerCLI module, I get this error message:

```
PS C:\Users\michael.valdes> install-module VMware.PowerCli
WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/VMware.VimAutomation.Sdk/11.0.0.10334495' is not valid.
PackageManagement\Install-Package : Package 'VMware.VimAutomation.Sdk' failed to download.
At C:\program files\powershell\6\Modules\PowerShellGet\PSModule.psm1:9491 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\Users\michae....10334495.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
```

For the MSOnline module on Windows Powershell 5.1 I was getting this error message:

```
PS C:\Windows\system32> Install-Module MSOnline -Force
WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/MSOnline/1.1.183.17' is not valid.
PackageManagement\Install-Package : Package 'MSOnline' failed to download.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\Users\michae...\MSOnline.nupkg:String) [Install-Package], Excep
tion
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPac
kage
```

I tried removing removing the repository from my PS configuration by issuing a:

```
Unregister-PSRepository -Name PSGallery
```

followed by a

```
Register-PSRepository -Default
```

but when I attempt to install the modules again I get the same errors.

For now I just copied the modules from another computer and placed them in my local module paths. I just thought those errors were weird since I have never seen them before.

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![kvprasoon](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kvprasoon/32/4449_2.png) [@kvprasoon](https://forums.powershell.org/u/kvprasoon)\
**Post date:** [January 22, 2019, 10:07pm UTC](https://forums.powershell.org/t/module-install-issues-from-powershellgallery/11939/2 "2019-01-22T22:07:38Z")

</div>

What is the version of PowerShellGet you are using.

**Get-Module -ListAvailable -Name PowerShellGet**

---

<div class="post-metadata">

**Author:** ![valdesnyc](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@valdesnyc](https://forums.powershell.org/u/valdesnyc)\
**Post date:** [January 23, 2019, 9:30am UTC](https://forums.powershell.org/t/module-install-issues-from-powershellgallery/11939/3 "2019-01-23T09:30:19Z")

</div>

Here you go. Thanks!

```
PS C:\Windows\system32> Get-Module -ListAvailable -Name PowershellGet | FL

Name : PowerShellGet
Path : C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PowerShellGet.psd1
Description : PowerShell module with commands for discovering, installing, updating and publishing the
PowerShell artifacts like Modules, DSC Resources, Role Capabilities and Scripts.
ModuleType : Script
Version : 1.0.0.1
NestedModules : {}
ExportedFunctions : {Install-Module, Find-Module, Save-Module, Update-Module...}
ExportedCmdlets :
ExportedVariables :
ExportedAliases : {inmo, fimo, upmo, pumo}
```

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:33pm UTC](https://forums.powershell.org/t/module-install-issues-from-powershellgallery/11939/4 "2024-05-16T20:33:26Z")

</div>

Closed on May 16, 2024, 8:33pm UTC


