Unable to install octopus.client nuget package

integration

(imacrae) #1

Hi,
According to https://octopus.com/docs/api-and-integration/octopus.client all I need to do to install the latest version of the client is
Install-Package Octopus.Client

However, when I run this in an elevated powershell command I gen the error:

Install-Package : No match was found for the specified search criteria and package name 'Octopus.Client'. Try
Get-PackageSource to see all available registered package sources.
At line:1 char:1
+ Install-Package Octopus.Client
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
   ception
    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Is the package missing from the repository?
Thanks


(Dalmiro Grañas) #2

Hi there,

Thanks for reaching out. The package is in the public NuGet repository.

  • What do you get when you run Get-PackageSource like the error message recommends?
  • What do you get when you run Get-PackageSource -ProviderName nuget ?

Best regards,
Dalmiro


(Dalmiro Grañas) #4
  • What do you get when you run Install-Package Octopus.client -verbose ?

Screenshots or full console output would be the best for all tests :slight_smile:


(imacrae) #5

Hi Dalmiro,
Here is a screenshot of my attempts

Thanks


(Dalmiro Grañas) #6

Hi,

I’m gonna look into this in shortly. In the meantime can you add the Octopus.Client to your project/solution from the Visual Studio UI? https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio#package-manager-ui

Let me know if that works


(imacrae) #7

Hi,
I have no problem adding or updating the octopus client in a visual studio project - just powershell.
The solution I have is powershell based and I need to distribute this to other computers. Therefore I need to install the powershell module on other computers. This is where I have come unstuck.

A bit of further information

PS C:\WINDOWS\system32> find-package "octopus*" | select name,version

Name                  Version
----                  -------
OctopusDSC            4.0.327
Octopus-Cmdlets       0.4.4
Octopus               1.0
OctopusProjectsDSC    1.5.1
OctopusStepTemplateCi 1.1.29

There is no Octopus.Client listed