Skip to content

Index error in Install-Package installing PSReadLine 2.0.0 beta6 #66

Description

Updating PSReadLine 2.0.0 to its latest beta (beta6) as of this writing fails due to an error in Install-Package.

This is reproducible in Windows PowerShell 5.1, PowerShell 6.2.3 and PowerShell 7 preview 5.

Steps to reproduce

Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug

Expected behavior

PSReadLine 2.0.0beta6 should get installed.

Actual behavior

PS 7.0.0-preview.5 C:/Windows/System32> Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug
DEBUG: 00:00:00.0000091 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0000151 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0000281 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0000097 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0055359 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0056917 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0057758 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0067438 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0563393 Registering providers via metaproviders for assembly Microsoft.PackageManagement.MetaProvider.PowerShell.Internal.PowerShellMetaProvider
DEBUG: 00:00:00.1372927 Initializing provider 'Bootstrap'
DEBUG: 00:00:00.1373082 Initializing provider 'zipfile'
DEBUG: 00:00:00.1374371 Initializing provider 'WebDownloader'
DEBUG: 00:00:00.1376007 Initializing provider 'NuGet'
DEBUG: 00:00:00.1541318 Trying to register metaprovider
DEBUG: 00:00:00.1817230 Initialize Bootstrapper
DEBUG: 00:00:00.1821640 Provider 'Bootstrap' Initialized
DEBUG: 00:00:00.1822351 Using Package Provider Bootstrap
DEBUG: 00:00:00.1825414 Initializing PowerShell MetaProvider
DEBUG: 00:00:00.1830110 Provider 'WebDownloader' Initialized
DEBUG: 00:00:00.1830137 Provider 'zipfile' Initialized
DEBUG: 00:00:00.1830712 Using Archiver Provider zipfile
DEBUG: 00:00:00.1830714 Using Downloader Provider WebDownloader
DEBUG: 00:00:00.1912800 Calling 'NuGet'::'InitializeProvider'.
DEBUG: 00:00:00.1913761 Provider 'NuGet' Initialized
DEBUG: 00:00:00.1914075 Using Package Provider NuGet
DEBUG: 00:00:00.2095506 Calling 'zipfile::GetFeatures'
DEBUG: 00:00:00.2105343 Calling 'NuGet'::'GetFeatures'.
DEBUG: 00:00:00.2116404 Calling 'Bootstrap::GetFeatures'
DEBUG: 00:00:00.2124814 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.2126278 Calling 'WebDownloader::GetFeatures'
DEBUG: 00:00:00.2128619 The provider 'Bootstrap' is imported
DEBUG: 00:00:00.2130689 The provider 'NuGet' is imported
DEBUG: 00:00:00.2137349 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.2137349 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.4663935 Attempting to load PowerShell Provider Module [C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1]
DEBUG: 00:00:00.6784833 Loaded PowerShell package provider: '[C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1]'.
DEBUG: 00:00:00.6883479 Loaded PowerShell Provider: PowerShellGet
DEBUG: 00:00:00.6917685 Initializing provider 'PowerShellGet'
DEBUG: 00:00:00.7093995 Calling New() : MethodName = 'InitializeProvider'
DEBUG: 00:00:00.7094750 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.7094976 WarningAction: SilentlyContinue
DEBUG: 00:00:00.7149803 INVOKING PowerShell Fn Initialize-Provider with args  that has length 0
DEBUG: 00:00:00.7370486 In PowerShellGet Provider - 'Initialize-Provider'.
DEBUG: 00:00:00.7375171 PowerShell Script 'PSModule' Function 'Initialize-Provider' returns null.
DEBUG: 00:00:00.7414203 Done calling powershell «Initialize-Provider» «PSModule»
DEBUG: 00:00:00.7415168 Provider 'PowerShellGet' Initialized
DEBUG: 00:00:00.7415390 Using Package Provider PowerShellGet
DEBUG: 00:00:00.7511005 Calling New() : MethodName = 'GetFeatures'
DEBUG: 00:00:00.7511922 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.7512309 WarningAction: SilentlyContinue
DEBUG: 00:00:00.7528402 INVOKING PowerShell Fn Get-Feature with args  that has length 0
DEBUG: 00:00:00.7583299 In PowerShellGet Provider - 'Get-Feature'.
DEBUG: 00:00:00.7664479 Done calling powershell «Get-Feature» «PSModule»
DEBUG: 00:00:00.7666302 The provider 'PowerShellGet' is imported
DEBUG: 00:00:00.7684255 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0000007 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0001950 ErrorVariable: ev
DEBUG: 00:00:00.0002381 Verbose: False
DEBUG: 00:00:00.0002692 Name: PSGallery
DEBUG: 00:00:00.0021231 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0108964 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.1042634 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.1095896 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.1454235 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.1454825 ErrorVariable: ev
DEBUG: 00:00:00.1455065 Verbose: False
DEBUG: 00:00:00.1455255 Name: PSGallery
DEBUG: 00:00:00.1467305 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.1557809 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.1681084 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.1747872 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.1748550 ErrorVariable: ev
DEBUG: 00:00:00.1748979 Verbose: False
DEBUG: 00:00:00.1749385 Name: PSGallery
DEBUG: 00:00:00.1759024 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.1768685 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.1804939 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.2516899 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.2553914 ErrorVariable: ev
DEBUG: 00:00:00.2571911 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.2587989 Verbose: False
DEBUG: 00:00:00.2606495 ProviderName: PowerShellGet
DEBUG: 00:00:00.2621942 Name: PSGallery
DEBUG: 00:00:00.2685079 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.2705996 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.2770474 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.2797270 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.2873028 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.2894210 ErrorVariable: ev
DEBUG: 00:00:00.2911272 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.2929586 Verbose: False
DEBUG: 00:00:00.2975969 ProviderName: PowerShellGet
DEBUG: 00:00:00.2996994 Name: PSGallery
DEBUG: 00:00:00.3016211 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.3039686 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.3085756 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.3106076 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0000004 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0000580 Debug: True
DEBUG: 00:00:00.0000913 Source: PSGallery
DEBUG: 00:00:00.0001199 Force: True
DEBUG: 00:00:00.0001480 Verbose: True
DEBUG: 00:00:00.0001751 Name: PSReadLine
DEBUG: 00:00:00.0021040 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0029426 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0063165 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.0072509 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0261864 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0262297 Debug: True
DEBUG: 00:00:00.0262600 Source: PSGallery
DEBUG: 00:00:00.0262885 Force: True
DEBUG: 00:00:00.0263168 Verbose: True
DEBUG: 00:00:00.0263440 Name: PSReadLine
DEBUG: 00:00:00.0272760 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0282135 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0300872 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0365331 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0365768 Debug: True
DEBUG: 00:00:00.0366078 Source: PSGallery
DEBUG: 00:00:00.0366461 Force: True
DEBUG: 00:00:00.0366768 Verbose: True
DEBUG: 00:00:00.0367063 Name: PSReadLine
DEBUG: 00:00:00.0376205 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0384653 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0416849 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0472089 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0472557 Debug: True
DEBUG: 00:00:00.0472772 Source: PSGallery
DEBUG: 00:00:00.0472959 Force: True
DEBUG: 00:00:00.0473141 Verbose: True
DEBUG: 00:00:00.0473420 Name: PSReadLine
DEBUG: 00:00:00.0482870 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0491116 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0609953 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0681707 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0682119 Debug: True
DEBUG: 00:00:00.0682406 Source: PSGallery
DEBUG: 00:00:00.0682685 Force: True
DEBUG: 00:00:00.0682962 Verbose: True
DEBUG: 00:00:00.0683223 Name: PSReadLine
DEBUG: 00:00:00.0692169 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0700711 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0752844 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.1697497 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.1729658 Source: PSGallery
DEBUG: 00:00:00.1747410 AllowPrereleaseVersions: True
DEBUG: 00:00:00.1765625 Type: Module
DEBUG: 00:00:00.1784373 ProviderName: PowerShellGet
DEBUG: 00:00:00.1803745 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.1842793 Verbose: True
DEBUG: 00:00:00.1859262 Force: True
DEBUG: 00:00:00.1879273 Name: PSReadLine
DEBUG: 00:00:00.1899766 Debug: True
DEBUG: 00:00:00.1939774 Scope: CurrentUser
DEBUG: 00:00:00.1987393 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.2010790 In PowerShellGet Provider - 'Resolve-PackageSource'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2/'; IsTrusted = 'False'; IsRegistered = 'True'.
DEBUG: 00:00:00.2073149 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.2092226 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.2122716 Calling SearchForPackages. Name='PSReadLine'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:00.2260216 PackageProvider::FindPackage with name PSReadLine
DEBUG: 00:00:00.2273192 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.2377979 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:00.2394935 Source: PSGallery
DEBUG: 00:00:00.2410321 AllowPrereleaseVersions: True
DEBUG: 00:00:00.2423662 Type: Module
DEBUG: 00:00:00.2438730 ProviderName: PowerShellGet
DEBUG: 00:00:00.2475336 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.2495824 Verbose: True
DEBUG: 00:00:00.2513983 Force: True
DEBUG: 00:00:00.2531408 Name: PSReadLine
DEBUG: 00:00:00.2547636 Debug: True
DEBUG: 00:00:00.2587718 Scope: CurrentUser
DEBUG: 00:00:00.2605530 INVOKING PowerShell Fn Find-Package with args System.String[], , ,  that has length 4
DEBUG: 00:00:00.3112378 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:00.3155646 OPTION: Source => PSGallery
DEBUG: 00:00:00.3172327 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:00.3187128 OPTION: Type => Module
DEBUG: 00:00:00.3204372 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:00.3245934 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.3269771 OPTION: Verbose => True
DEBUG: 00:00:00.3290242 OPTION: Force => True
DEBUG: 00:00:00.3306952 OPTION: Name => PSReadLine
DEBUG: 00:00:00.3322432 OPTION: Debug => True
DEBUG: 00:00:00.3366908 OPTION: Scope => CurrentUser
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:00.3934884 PackageProvider::FindPackage with name PSReadLine
DEBUG: 00:00:00.4099804 Calling 'NuGet'::'FindPackage' - name='PSReadLine', requiredVersion='',minimumVersion='', maximumVersion='''.
DEBUG: 00:00:00.4161288 Iterating 'PSReadLine'.
DEBUG: 00:00:00.4325649 Calling 'NuGetRequest'::'RegisteredPackageSources', 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.4355748 Loading a configuration from file 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.4379928 Loaded a configuration from file 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.4417953 There are '2' registered sources in 'NuGet' provider.
DEBUG: 00:00:00.4452709 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:02.0571418 Downloading 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:02.1525715 Completed downloading 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:02.1571028 Source 'https://www.powershellgallery.com/api/v2/' is validated.
DEBUG: 00:00:02.1605935 Calling 'NuGetRequest'::'GetPackageById', 'PSReadLine'.
DEBUG: 00:00:02.1634628 Calling 'NuGetPackageRepository'::'FindPackagesById', 'PSReadLine'.
DEBUG: 00:00:02.1682819 Calling 'NuGetPackageFeed2'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:02.1703763 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'' for ''.
DEBUG: 00:00:02.1883963 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.3121234 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.3207486 '13' packages received in the last request.
DEBUG: 00:00:02.3504265 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.4479539 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.4522152 '13' packages received in the last request.
VERBOSE: Total package yield:'1' for the specified package 'PSReadLine'.
DEBUG: 00:00:02.4854809 Completed iterating for 'PSReadLine'.
DEBUG: 00:00:02.6385199 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:02.6719033 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:02.6752640 Source: PSGallery
DEBUG: 00:00:02.6770029 AllowPrereleaseVersions: True
DEBUG: 00:00:02.6785251 Type: Module
DEBUG: 00:00:02.6802473 ProviderName: PowerShellGet
DEBUG: 00:00:02.6818690 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.6864351 Verbose: True
DEBUG: 00:00:02.6883718 Force: True
DEBUG: 00:00:02.6902837 Name: PSReadLine
DEBUG: 00:00:02.6921188 Debug: True
DEBUG: 00:00:02.6940984 Scope: CurrentUser
DEBUG: 00:00:02.6982648 INVOKING PowerShell Fn Get-InstalledPackage with args PSReadLine, 2.0.0-beta6, ,  that has length 4
DEBUG: 00:00:02.7033663 In PowerShellGet Provider - 'Get-InstalledPackage'.
DEBUG: 00:00:02.7050180 OPTION: Source => PSGallery
DEBUG: 00:00:02.7085406 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:02.7116424 OPTION: Type => Module
DEBUG: 00:00:02.7139341 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:02.7156612 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.7207804 OPTION: Verbose => True
DEBUG: 00:00:02.7227600 OPTION: Force => True
DEBUG: 00:00:02.7250743 OPTION: Name => PSReadLine
DEBUG: 00:00:02.7272423 OPTION: Debug => True
DEBUG: 00:00:02.7315716 OPTION: Scope => CurrentUser
DEBUG: 00:00:03.1629474 PowerShell Script 'PSModule' Function 'Get-InstalledPackage' returns null.
DEBUG: 00:00:03.1680596 Done calling powershell «Get-InstalledPackage» «PSModule»

Confirm
Are you sure you want to perform this action?
Performing the operation "Install-Module" on target "Version '2.0.0-beta6' of module 'PSReadLine'".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): a
DEBUG: 00:00:05.5847801 Calling New() : MethodName = 'InstallPackage'                                                                                                       DEBUG: 00:00:05.5884687 Source: PSGallery                                                                                                                                   DEBUG: 00:00:05.5948433 AllowPrereleaseVersions: True                                                                                                                       DEBUG: 00:00:05.5984179 Type: Module                                                                                                                                        DEBUG: 00:00:05.6044486 ProviderName: PowerShellGet                                                                                                                         DEBUG: 00:00:05.6078383 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString                                                                    DEBUG: 00:00:05.6106573 Verbose: True                                                                                                                                       DEBUG: 00:00:05.6162571 Force: True                                                                                                                                         DEBUG: 00:00:05.6192920 Name: PSReadLine                                                                                                                                    DEBUG: 00:00:05.6223862 Debug: True                                                                                                                                         DEBUG: 00:00:05.6278458 Scope: CurrentUser                                                                                                                                  DEBUG: 00:00:05.6315851 INVOKING PowerShell Fn Install-Package with args NuGet|PSReadLine|2.0.0-beta6|https://www.powershellgallery.com/api/v2/|Module that has length 1    DEBUG: 00:00:05.6355948 In PowerShellGet Provider - 'Install-Package'.                                                                                                      DEBUG: 00:00:05.6886502 In PowerShellGet Provider - 'Install-PackageUtility'.                                                                                               DEBUG: 00:00:05.6935985 The FastPackageReference is 'NuGet|PSReadLine|2.0.0-beta6|https://www.powershellgallery.com/api/v2/|Module'.                                        DEBUG: 00:00:05.7410407 OPTION: Source => PSGallery                                                                                                                         DEBUG: 00:00:05.7461847 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:05.7476891 OPTION: Type => Module
DEBUG: 00:00:05.7492145 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:05.7514580 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:05.7549196 OPTION: Verbose => True
DEBUG: 00:00:05.7566778 OPTION: Force => True
DEBUG: 00:00:05.7587412 OPTION: Name => PSReadLine
DEBUG: 00:00:05.7612266 OPTION: Debug => True
DEBUG: 00:00:05.7656173 OPTION: Scope => CurrentUser
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules'.
DEBUG: 00:00:05.7776957 ArtifactType is Module
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSReadLine' with version '2.0.0-beta6' from the repository 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.8898801 Calling 'NuGet'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:05.8940987 Calling 'NuGetRequest'::'GetPackageByFastpath', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:05.8974498 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.8994347 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.9015305 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:06.2908712 Calling 'NuGetPackageRepository'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:06.2945225 Calling 'NuGetPackageFeed2'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:06.2967481 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'' for ''.
DEBUG: 00:00:06.3007353 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:06.6922501 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:06.6954843 '13' packages received in the last request.
DEBUG: 00:00:06.6978217 'Package version' is '2.0.0-beta6'.
DEBUG: 00:00:06.6996386 'Request's Destination' is 'C:\Users\steph\AppData\Local\Temp\1785064749'.
DEBUG: 00:00:06.7026683 Calling 'NuGetPackageRepository'::'InstallPackage'.
DEBUG: 00:00:06.7061374 Calling 'NuGetFilesFeed2'::'InstallPackage'.
DEBUG: 00:00:06.7078551 Calling 'NuGetFilesFeed2'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:06.7209159 Calling 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:06.7311845 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:06.7388948 Calling 'NuGetClient'::'InstallPackage'.
VERBOSE: InstallPackage' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1785064749'
VERBOSE: DownloadPackage' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1785064749\PSReadLine.2.0.0-beta6\PSReadLine.2.0.0-beta6.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'.
VERBOSE: Completed downloading 'PSReadLine'.
DEBUG: 00:00:07.4587929 Calling 'NuGetClient'::'InstallPackageLocal'.
VERBOSE: InstallPackageLocal' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1785064749'
DEBUG: 00:00:07.4742902 C:\Users\steph\AppData\Local\Temp\1785064749\PSReadLine.2.0.0-beta6\PSReadLine.2.0.0-beta6.nupkg
DEBUG: 00:00:07.5841816 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:07.6016793 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:07.6063457 Returning the call 'NuGetFilesFeed2'::'InstallPackage'.
VERBOSE: Validating the 'PSReadLine' module contents under 'C:\Users\steph\AppData\Local\Temp\1785064749\PSReadLine.2.0.0-beta6' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\steph\AppData\Local\Temp\1785064749\PSReadLine.2.0.0-beta6'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PSReadLine'.
DEBUG: 00:00:09.2213916 Found the catalog file 'PSReadLine.cat' in the module 'PSReadLine' contents.
DEBUG: 00:00:09.2297693 Using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0' for getting the publisher details.
DEBUG: 00:00:09.2318008 Using the 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0\PSReadLine.cat' file for getting the authenticode signature.
DEBUG: 00:00:09.6686177 For publisher validation, using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Found the catalog file 'PSReadLine.cat' in the module 'PSReadLine' contents.
VERBOSE: Valid authenticode signature found in the catalog file 'PSReadLine.cat' for the module 'PSReadLine'.
VERBOSE: Validating the 'PSReadLine' module files for catalog signing using the catalog file 'PSReadLine.cat'.
VERBOSE: The catalog signature in 'PSReadLine.cat' of the module 'PSReadLine' is valid and matches with the hash generated from the module contents.
DEBUG: 00:00:10.3348867 For publisher validation, current module 'PSReadLine' with version '2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, current module 'PSReadLine' with version '2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
DEBUG: 00:00:10.3512201 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:10.3533841 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:10.3553825 Is previously-installed module signed by Microsoft: True
DEBUG: 00:00:10.3597306 Is current module signed by Microsoft: True
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'PSReadLine' with version '2.0.0' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'PSReadLine' with version '2.0.0'.
VERBOSE: Checking for possible command collisions for the module 'PSReadLine' commands.
DEBUG: 00:00:10.6566225 PowerShell Script 'PSModule' Function 'Install-Package' returns null.
Install-Package: C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1
Line |
9683 |             $installedPackages = PackageManagement\Install-Package @PSBoundParameters
     |                                  ^ Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.0.0-preview.5
PSEdition                      Core
GitCommitId                    7.0.0-preview.5
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
> Get-Module -ListAvailable PowerShellGet,PackageManagement
    Directory: C:\Users\steph\OneDrive\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     2.2.1                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}

    Directory: C:\program files\powershell\7-preview\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.4.5                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     2.2.1                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
> Get-PackageProvider -ListAvailable
Name                     Version          DynamicOptions
----                     -------          --------------
Gist                     1.6.0.0
NuGet                    3.0.0.1          Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipV…
PowerShellGet            2.2.1.0          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, InstallUpdate, NoPathUpdate, AllowPrereleaseVersions, …
TSD                      0.2.0.0          Destination

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions