Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install from command line #38

Open
jftl6y opened this issue Aug 25, 2021 · 4 comments
Open

Cannot install from command line #38

jftl6y opened this issue Aug 25, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@jftl6y
Copy link

jftl6y commented Aug 25, 2021

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.
@jonsequitur
Copy link
Owner

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

>  dotnet nuget list source
>  dotnet --info

@jonsequitur jonsequitur added the bug Something isn't working label Aug 26, 2021
@jftl6y
Copy link
Author

jftl6y commented Aug 26, 2021

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'

@jonsequitur
Copy link
Owner

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

@jonsequitur
Copy link
Owner

Did you get a chance to give this a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants