Failed to run command dotnet tool install --global dotnet-sonar-scanner

Hi,

I tried run this command to install but hit the error below, I researched about this and followed the solution that someone provided. I added the proxy settings in Nuget.config but still hit the error.

C:\Users\cheekien_ng\Desktop\cheekien>dotnet tool install --global dotnet-sonar-scanner
C:\Program Files\dotnet\sdk\5.0.100\NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\Users\cheekien_ng\AppData\Local\Temp\rehdhn5k.zmm\restore.csproj]
C:\Program Files\dotnet\sdk\5.0.100\NuGet.targets(131,5): error :   Response status code does not indicate success: 407 (Proxy Authentication Required). [C:\Users\cheekien_ng\AppData\Local\Temp\rehdhn5k.zmm\restore.csproj]

Best Regards,
Ken

Hi @chee_kien

This seems like a nuget configuration issue. Did you try to do a search on the internet for similar problems (e.g. on StackOverflow or VS Developer Community)?