Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install NuGet package: Falling back to NuGet Local Cache [duplicate]

I am new in the stack overflow community. Right now I am learning c#(using visual studio 2012) and working on uploading files in a google drive.

I followed this tutorial http://www.daimto.com/google-drive-api-c-upload/ but sadly I have getting error when executing this command

Install-Package Google.Apis.Drive.v2

The source at All [(Aggregate source)] is unreachable. Falling back to NuGet Local Cache at C:\Users\Cyclone\AppData\Local\NuGet\Cache Install-Package : Unable to find package 'Google.Apis.Drive.v2'. At line:1 char:1 + Install-Package Google.Apis.Drive.v2 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I don't really know the problem and can't continue on my project. Could someone explain me how to solve this error or any work around in uploading files in a google drive.

Thank you and sorry for the bad English!

like image 522
user3928241 Avatar asked Jul 07 '16 09:07

user3928241


1 Answers

Maybe adding -Source nuget.org to your command would fix this?

So try the command:

Install-Package Google.Apis.Drive.v2 -Source nuget.org

Or, you can also try http://www.nuget.org/api/v2 instead of nuget.org

If this works, you may have your Package Source misconfigured.

like image 82
Peter Avatar answered Nov 18 '22 17:11

Peter