OneGet / oneget

PackageManagement (aka OneGet) is a package manager for Windows
MIT License
2.38k stars 190 forks source link

Cannot debug locally Powershell Azure Function using Windows 10 Build 19041.388 #493

Closed ImranKamaluddin closed 4 years ago

ImranKamaluddin commented 4 years ago

When trying to debug a local Powershell Azure Function using Windows 10 Build 19041.388, I get the following error when trying run the function using "func start"

System Log: { Log-Level: Error; Log-Message: Failed to install module 'Az' version '4.4.0'. 1st attempt. Error: 'The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Unable to find module providers (PowerShellGet).' }

I have reinstalled Powershell 7 and Visual Studio Code but this has made no difference.

ImranKamaluddin commented 4 years ago

Managed to fix the above issue. It was due to a misconfigured PSModulePath environment settings