ArDumez
ArDumez

Reputation: 1001

Server error reported when using NuGet to install package from PowerShell

I have an error when I install nuget from powershell: The server returned error 404

But the same myget.org URL with works from web browser.

Upvotes: 1

Views: 109

Answers (1)

Matt Ward
Matt Ward

Reputation: 47907

The error message being displayed looks like it is from NuGet v2 which does not support package sources that end with index.json since they are NuGet v3 specific.

The 404 is because the NuGet v2 client is trying to use an endpoint which does not exist. The error message does not show the url which is failing but just shows you the package source being used.

So you can either download NuGet v3 and use that. Or you can change your package source urls so they are NuGet v2 compatible: https://dotnet.myget.org/F/dotnet-core/

Another thing to check is that is the dbup NuGet package available from the package sources you have enabled. The dbup NuGet package is available from nuget.org but possibly not from the MyGet package sources you have enabled.

Upvotes: 2

Related Questions