-
Notifications
You must be signed in to change notification settings - Fork 136
Can't install modules when running as non root user on Centos 7.6 #516
Comments
The
|
@TravisEz13 thanks for pointing that out. I checked again without |
@SteveL-MSFT Can/Should we transfer this to PowerShellGet? |
@djsowa thanks for opening this issue...what version of .Net do you have running? |
@SydneyhSmith Here You can find dotnet--info result:
|
I am having this issue as well. I think the root cause is having no package provider on the system for the user. The debug log says
I even tried this after giving the current user rights to the PowerShell-related local folders
|
I had a similar problem. It was caused by ownership of /tmp/Microsoft.PackageManagement. Only root and the nonroot user who created it were able to install modules. Deleting this directory mitigates the issue, but, of course, only for the user who creates it. |
@djsowa we're in the process of refactoring the Install cmdlet and will address this issue then. |
@anamnavi Are there any ETA when the issue will be fixed? |
I ran into a similar issue that brought me here. On linux (f35), if I use pwsh as one user & then try a different user ... install-module fails (for the second, and subsequent users). I tracked it down to pwsh creating |
Hi @abilous-ti and @josephtingiris can you all try the latest PowerShellGetv3 release? We believe it might be resolved there. |
@StevenBucher98 I believe I have this same issue on windows after struggling with the symptoms seen in OneGet #477 some minimal reproduction info:
without admin
With PS elevated:
|
Steps to reproduce
Expected behavior
Az module installed.
Actual behavior
Environment data
SELinux status:
The text was updated successfully, but these errors were encountered: