microsoft / vssetup.powershell

PowerShell module to interact with Visual Studio Setup
MIT License
233 stars 41 forks source link

Failed to install module due to failed access to cloud file #61

Closed Tafnu07 closed 3 years ago

Tafnu07 commented 3 years ago

When trying to install VSSetup module by running the following command:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser Install-Module VSSetup -Scope CurrentUser -Force -Confirm:$false

But it fails with "Access to the cloud file is denied"

PackageManagement\Install-Package : Access to the cloud file is denied At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21

Not sure how to resolve this issue. Can't seem to find any help online as well.

heaths commented 3 years ago

You might check the powershellgallery.com status. This isn't a problem with this PowerShell module, but something with PSGet (PackageManager) or powershellgallery.com itself. See https://aka.ms/psgallery-status/ for status, and https://www.powershellgallery.com/policies/Contact for support options for either the PSGet module or the gallery.

MHanafy commented 3 years ago

I've had the same error with Powershell 5; issue got resolved only by installing powershell 7.