dotnet / HttpRepl

The HTTP Read-Eval-Print Loop (REPL) is a lightweight, cross-platform command-line tool that's supported everywhere .NET Core is supported and is used for making HTTP requests to test ASP.NET Core web APIs and view their results.
MIT License
698 stars 67 forks source link

Unable to install #512

Open shenghou90 opened 3 years ago

shenghou90 commented 3 years ago

I get the following error when running below command on my command prompt or visual studio terminal. Please help

dotnet tool install -g Microsoft.dotnet-httprepl

error NU1101: Unable to find package microsoft.dotnet-httprepl. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages The tool package could not be restored. Tool 'microsoft.dotnet-httprepl' failed to install. This failure may have been caused by:

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

naramdash commented 2 years ago

i have same problem

naramdash commented 2 years ago

@shenghou90

i solve this by deleting nuget.config

check this link

maxkoshevoi commented 2 years ago

Try executing dotnet tool install -g Microsoft.dotnet-httprepl from a different folder (one that doesn't have nuget.config) in it

WeihanLi commented 2 years ago

Try to add a --ignore-failed-sources option

dotnet tool install -g Microsoft.dotnet-httprepl --ignore-failed-sources