Unable to install modules after installing PS core 6

I installed PS core 7, rebooted and installed PS core 6. When I launch PS core 6 I can’t install modules and PackageManagement is missing when I listed modules. When I try to installed PackageManagement I get the following error:

install-module : The 'install-module' command was found in the module 'PowerShellGet', but the module could not be loaded. For more information, run 'Import-Module PowerShellGet'. At line:1 char:1 + install-module PackageManagement + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (install-module:String) [], CommandNotFoundException + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

Check ‘PowerShellGet’ package provider is installed or not using Get-PackageProvider, if not use the command below to get it installed.


Find-PackageProvider -Name PowerShellGet | Install-PackageProvider -Force


Thank you.

That did it. Thanks Kiran!