# Issue with NuGet in PowerShell 7.0.1 on Mac OS Catalina

**URL:** <https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423>\
**Category:** PowerShell Help\
**Created:** [May 25, 2020, 2:39pm UTC](https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423 "2020-05-25T14:39:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cartersheehan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@cartersheehan](https://forums.powershell.org/u/cartersheehan)\
**Post date:** [May 25, 2020, 2:39pm UTC](https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423/1 "2020-05-25T14:39:15Z")

</div>

Hello,

I recently installed PowerShell 7.0.1 using the package installer found in the Git repo ([https://github.com/PowerShell/PowerShell](https://github.com/PowerShell/PowerShell)). The install completed fine and with no errors but, I’m getting an error related to NuGet when I try to do things like installing a module. Here’s an example of what I’m referring to:

```
PS /Users/cartersheehan\> Install-Module-Name AWSLambdaPSCoreNuGet provider is required to continuePowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet provider must be available in '' or ''. You can also install the NuGet provider by running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import the NuGet provider now?[Y] Yes[N] No[S] Suspend[?] Help (default is "Y"): YInstall-PackageProvider: /usr/local/share/powershell/Modules/PowerShellGet/1.6.5/PSModule.psm1:3208Line |3208 | … $null = PackageManagement\Install-PackageProvider -Name $script:N …| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Unable to find repository with SourceLocation ''. Use Get-PSRepository to see all available repositories.Import-PackageProvider: /usr/local/share/powershell/Modules/PowerShellGet/1.6.5/PSModule.psm1:3214Line |3214 | … $null = PackageManagement\Import-PackageProvider -Name $script:Nu …|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | No match was found for the specified search criteria and provider name 'NuGet'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists on the system.Get-PackageProvider: /usr/local/share/powershell/Modules/PowerShellGet/1.6.5/PSModule.psm1:3218Line |3218 | … tProvider = PackageManagement\Get-PackageProvider -Name $script:NuGet …| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Unable to find package provider 'NuGet'. It may not be imported yet. Try 'Get-PackageProvider -ListAvailable'.Install-Module: NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed.PS /Users/cartersheehan\> Get-PSRepositoryGet-PackageSource: /usr/local/share/powershell/Modules/PowerShellGet/1.6.5/PSModule.psm1:9224Line |9224 | … ckageSources = PackageManagement\Get-PackageSource @PSBoundParameters|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Unable to find module providers (PowerShellGet).PS /Users/cartersheehan\> Install-Module-Name PowerShellGet -ForceNuGet provider is required to continuePowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet provider must be available in '' or ''. You can also install the NuGet provider by running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import the NuGet provider now?[Y] Yes[N] No[S] Suspend[?] Help (default is "Y"): YInstall-PackageProvider: /usr/local/share/powershell/Modules/PowerShellGet/1.6.5/PSModule.psm1:3208Line |3208 | … $null = PackageManagement\Install-PackageProvider -Name $script:N …| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Unable to find repository with SourceLocation ''. Use Get-PSRepository to see all available repositories.Import-PackageProvider: /usr/local/share/powershell/Modules/PowerShellGet/1.6.5/PSModule.psm1:3214Line |3214 | … $null = PackageManagement\Import-PackageProvider -Name $script:Nu …|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | No match was found for the specified search criteria and provider name 'NuGet'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists on the system.Get-PackageProvider: /usr/local/share/powershell/Modules/PowerShellGet/1.6.5/PSModule.psm1:3218Line |3218 | … tProvider = PackageManagement\Get-PackageProvider -Name $script:NuGet …| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Unable to find package provider 'NuGet'. It may not be imported yet. Try 'Get-PackageProvider -ListAvailable'.Install-Module: NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed.PS /Users/cartersheehan\> Install-PackageProvider-Name NuGet -RequiredVersion 2.8.5.201 -ForceOperationStopped: Collection was modified; enumeration operation may not execute.PS /Users/cartersheehan\>
```

As you can see, doing actions require NuGet but, when prompted to install NuGet or when I try to install it myself, it fails.

Any help will be greatly appreciated!

Thank you,

Carter

---

<div class="post-metadata">

**Author:** ![cartersheehan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@cartersheehan](https://forums.powershell.org/u/cartersheehan)\
**Post date:** [May 26, 2020, 8:15am UTC](https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423/2 "2020-05-26T08:15:26Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [May 26, 2020, 10:10am UTC](https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423/3 "2020-05-26T10:10:17Z")

</div>

Please don’t post just to “bump” - it typically gets you the reverse of what you want. I’m not sure if the TLS setting is only applicable to windows or not, but you may try this.

```
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 
Install-Module PowerShellGet -RequiredVersion 2.2.4 -SkipPublisherCheck
```

> **[PowerShell Gallery TLS Support](https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/)**
>
> Summary To provide the best-in-class encryption to our customers, the PowerShell Gallery has deprecated Transport Layer Security (TLS) versions 1.0 and 1.1 as of April 2020. The Microsoft TLS 1.0 implementation has no known security vulnerabilities....

---

<div class="post-metadata">

**Author:** ![cartersheehan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@cartersheehan](https://forums.powershell.org/u/cartersheehan)\
**Post date:** [May 29, 2020, 2:54pm UTC](https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423/4 "2020-05-29T14:54:31Z")

</div>

Doug,

My apologies. I tried your suggestion to adjust the tls security setting but I still get the same prompt to install NuGet before the install of PowerShellGet can even happen. During the NuGet install I get the same error messages.

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [May 29, 2020, 3:11pm UTC](https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423/5 "2020-05-29T15:11:01Z")

</div>

Carter,

I’ll see if it’s consistent on my Mac. Have you tried any other version?

---

<div class="post-metadata">

**Author:** ![cartersheehan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@cartersheehan](https://forums.powershell.org/u/cartersheehan)\
**Post date:** [May 29, 2020, 3:15pm UTC](https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423/6 "2020-05-29T15:15:48Z")

</div>

Doug,

I have not tested any other version right now, I went right for the LTS version available in the Git repo. I’ve swapped over to the Windows side of my Mac (bootcamp), so I’m able to get around this problem for now. I’ve installed the same version on the Windows side of my machine and did not run into the same issue.

---

<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:29pm UTC](https://forums.powershell.org/t/issue-with-nuget-in-powershell-7-0-1-on-mac-os-catalina/14423/7 "2024-05-16T20:29:25Z")

</div>


