Cannot add or update NuGet packages, receiving NuGet V2 feed error

Ethel Patrick

I have recently moved to VS 2019 and now I can not install or update packages through NuGet. I receive the following error -

An error occurred while retrieving package metadata for 'jQuery.3.4.1' from source 'NuGet.org'.
Failed to fetch results from V2 feed at 'https://www.nuget.org/FindPackagesById()?id='jQuery'&semVerLevel=2.0.0' with following message : Response status code does not indicate success: 404 (Not Found).
Response status code does not indicate success: 404 (Not Found).

I have NuGet Package source pointing to --- https://api.nuget.org/v3/index.json

Is there another package source I should be using?

Lance Li-MSFT

If you meet this issue in VS IDE:

Go Tools=>Nuget Package Manager=>Package Manager Settings=>Package Source to check if you have other package source whose URL is https://www.nuget.org, if it exists, disable/delete this package source.

If you meet this issue in command line:

enter image description here

You need to specify the source like this: nuget install PackageName -Source https://api.nuget.org/v3/index.json -Version 3.4.1. You may use other install command(dotnet other what), just make sure you specify the correct source in command.

Hope it helps to give a correct direction to resolve the issue :)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

No packages found for TeamCity NuGet feed

Cannot modify NuGet packages

NuGet error restoring packages

Build Error with NuGet packages

Download all packages from private nuget feed

Failure to restore nuget packages from organisation feed

Push all packages to remote NuGet feed

Remove foreign nuget packages from private nuget feed

Non-proprietary Nuget Packages Showing in Nuget Server/Artifacts Feed

Cannot add Nuget packages to ASP.NET vNext project

Nuget packages versioning/update strategy

AppHarbor build error with nuget packages

NuGet packages do not show after pushing to private NuGet Feed (NuGet.Server, IIS)

Nuget VS 2015 Update 2 Doesn't Find All Packages

Nuget.org in visual studio 2015 update 2 wont get nuget packages

Getting error while accessing the Private Nuget feed

NUGET update packages from command line to VSTS

Manage NUGET Packages menu missing after update

When should I update NuGet packages for a project?

TeamCity Build Server cannot restore nuget packages

Cannot upgrade nuget packages for Xamarin.Android

Visual Studio NuGet Cannot Restore Packages

TFS on premise can't restore nuget packages from private feed

Why are there Microsoft packages in my private Nuget Feed in DevOps Artifacts?

Can I upload existing NuGet packages to an Azure DevOps artifacts feed?

overwrite nuget packages in feed on visual studio team services

TFS ONPREMISE - Package Feed - BuildAgent do not restore Nuget Packages : 403

TeamCity Nuget Feed does not pick up latest Packages from a build

Option "Add NuGet packages" not available/greyed out