dotnet-repl icon indicating copy to clipboard operation
dotnet-repl copied to clipboard

Cannot install from command line

Open jftl6y opened this issue 4 years ago • 4 comments

Trying to install to a new laptop - install the .NET 5.0.400 SDK and get the following:

dotnet tool install -g dotnet-repl

error NU1100: Unable to resolve 'dotnet-repl (>= 0.0.0)' for 'net5.0'. error NU1100: Unable to resolve 'dotnet-repl (>= 0.0.0)' for 'net5.0/any'. The tool package could not be restored. Tool 'dotnet-repl' failed to install. This failure may have been caused by:

  • You are attempting to install a preview release and did not use the --version option to specify the version.
  • A package by this name was found, but it was not a .NET tool.
  • The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
  • You mistyped the name of the tool.

jftl6y avatar Aug 25 '21 23:08 jftl6y

Can you post the results of the following two commands from your terminal?

>  dotnet nuget list source
>  dotnet --info

jonsequitur avatar Aug 26 '21 00:08 jonsequitur

dotnet nuget list source No sources found. PS C:\Users\johnc> dotnet --info .NET SDK (reflecting any global.json): Version: 5.0.400 Commit: d61950f9bf

Runtime Environment: OS Name: Windows OS Version: 10.0.19043 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.400\

Host (useful for support): Version: 5.0.9 Commit: 208e377a53

.NET SDKs installed: 5.0.400 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

My nuget.config is 'empty'

jftl6y avatar Aug 26 '21 03:08 jftl6y

If you create a nuget.config with an entry for nuget.org, I suspect it should fix this.

jonsequitur avatar Aug 26 '21 22:08 jonsequitur

Did you get a chance to give this a try?

jonsequitur avatar Oct 12 '21 01:10 jonsequitur