1

Recent Sitecore 9.1 Initial Release had launched with SIF 2.0. As per documentation you need to execute following command. Assuming here you are doing first time on your machine.

Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v3

But this gives me error on my local machine & tried also in my remote fresh Azure Windows Server 2016 machine. Following is error

PackageManagement\Register-PackageSource : Module Repository 'SitecoreGallery' exists.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4173 char:17
+ ...     $null = PackageManagement\Register-PackageSource @PSBoundParamete ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceExists: (Microsoft.Power...erPackageSource:RegisterPackageSource) [Register-PackageSource], Exception
    + FullyQualifiedErrorId : PackageSourceExists,Microsoft.PowerShell.PackageManagement.Cmdlets.RegisterPackageSource
2
  • I think SIF 2.0 was only available as a zip file and not on NuGet yet. But I could be wrong. – Chris Auer Nov 29 '18 at 21:07
  • Issue is Something wrong with this URL as one browser hit it doesn't show Packages while V2 version did. sitecore.myget.org/F/sc-powershell/api/v3 – Vishu Nov 29 '18 at 21:12
1

You will get this error if have are using internet through proxy which requires credentials. Avoid using the proxy or provide proxy credentials to the PS command.

5

Solution is mentioned already in other Sitecore 9.1 Installation Guide. Install Old SIF & update it.

Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2

If you already have SIF you can directly update it by following command

Update-Module SitecoreInstallFramework

You can verify it by running following command

Get-Module SitecoreInstallFramework –ListAvailable

It should look like in fresh machines like this enter image description here

In Existing machines after just updates it should like this enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.