Run powershell as administrator
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
ref: [1]
ref: [2]