-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install-Module errors on install of Azure and AzureRM modules - MacOsX #1874
Comments
|
Can you try 'Register-PSRepository -Default', then retry the repro? |
|
Received the same error, and I have verified that the PSModule.psm1 file exists at this path. PackageManagement\Register-PackageSource : Unable to find module providers (PowerShellGet).
|
|
Although not quite you are also likely to hit the issue in #1773 as well as Install-Module is not currently working due to version type changes in these builds |
|
I receive the same error when trying Register-PsRepository -Default |
|
@JoshLuedeman Please use one of the following options to install the modules. Option 1: Replace the PSModule.psm1 file under PowerShellGet module base with the updated file from master branch (https://github.com/PowerShell/PowerShell).Option 2: Get the latest CI buildOption 3: Use NuGet provider to install the required module to the target location. |
|
@bmanikm seeing the same behavior, can confirm option 1 does not remediate. |
|
I managed to get the AzureRM module to install by ensuring that the .NET core was installed, and by making sure to run powershell with sudo. |
|
@jimbrookski There are new AzureRM modules refactored to work on CoreCLR. Try Option 3 (Install-Package) from @bmanikm response above and specify AzureRM.NetCore.Preview as the name of the module. |
|
I followed @alexandair's advice and it worked. A step by step though is that you'll need to do the following. (I also put the modules in my home directory, not sure if that is correct)
Note: When I ran the command |
|
Great, works corretly but it's very important...we need use for example the following commands: Get-AzureService |
|
@dfr0 - you'll need to raise this in the Azure Powershell repo over at https://github.com/azure/azure-powershell as this isn't a PowerShell issue |
|
This issue was moved to PowerShell/PowerShellGet#24 |
|
note: On OSX 10.11.6, I'm getting: Install-Package : Unable to find package source
'https://www.powershellgallery.com/api/v2/'. Use Get-PackageSource to see all
available package sources.This is with PS 6 alpha 15 |
|
Above Option 3 using NuGet works. |
|
We should close this issue. I can install both Azure module and any package without any issues. :) MacOS/Linux/Windows All Good! |
Steps to reproduce
Run command Install-Module Azure or Install-Module AzureRM
Expected behavior
Install PowerShell module for interacting with Azure using Azure and AzureRM commandlets
Actual behavior
Receive following error code
PackageManagement\Install-Package : Unable to find module providers (PowerShellGet).
At /usr/local/microsoft/powershell/6.0.0-alpha.9/Modules/PowerShellGet/PSModule.psm1:1706 char:21
ion
Environment data
Name Value
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.9
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
The text was updated successfully, but these errors were encountered: