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

Error installing without version specified #162

Closed
scottsauber opened this issue May 19, 2019 · 2 comments
Closed

Error installing without version specified #162

scottsauber opened this issue May 19, 2019 · 2 comments
Labels
Needs More Info This issue needs additional details to be actionable Triaged This issue has been reviewed

Comments

@scottsauber
Copy link
Contributor

When I tried
dotnet tool install -g dotnet-format

I received the following error:

The tool package could not be restored.
Tool 'dotnet-format' 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 Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

I have the following SDK's installed

2.1.403 [C:\Program Files\dotnet\sdk]
2.1.505 [C:\Program Files\dotnet\sdk]
2.1.602 [C:\Program Files\dotnet\sdk]
2.1.700-preview-009597 [C:\Program Files\dotnet\sdk]
2.1.700-preview-009601 [C:\Program Files\dotnet\sdk]
2.1.700-preview-009618 [C:\Program Files\dotnet\sdk]
2.2.101 [C:\Program Files\dotnet\sdk]
2.2.202 [C:\Program Files\dotnet\sdk]
3.0.100-preview4-011223 [C:\Program Files\dotnet\sdk]

When I tried to global.json myself to 2.2.2 I received the same error.

When I did the following, it worked fine:
dotnet tool install -g dotnet-format --version 3.0.4

Not sure if this is related to dotnet format itself or if this is a problem elsewhere since I have previews.

@JoeRobich
Copy link
Member

Hi @scottsauber, are you still having issues installing dotnet-format?

@JoeRobich JoeRobich added Needs More Info This issue needs additional details to be actionable Triaged This issue has been reviewed labels Mar 17, 2020
@scottsauber
Copy link
Contributor Author

Nope, I'm all good now. I'm chalking it up to running preview bits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Info This issue needs additional details to be actionable Triaged This issue has been reviewed
Projects
None yet
Development

No branches or pull requests

2 participants