PowerShell-Statistics icon indicating copy to clipboard operation
PowerShell-Statistics copied to clipboard

Install-Module failed: installation would clobber Measure-Object

Open ScottMunroMS opened this issue 5 years ago • 1 comments

tried to install this module using Install-Module -name Statistics and I got a warning that it would clobber the Measure-Object cmdlet. Considering the Measure-Object cmdlet is shipped with Powershell this was unexpected and I'm surprised the simplest install collides with a core module. Am I doing something wrong?

image

ScottMunroMS avatar Aug 15 '20 21:08 ScottMunroMS

When I created the first set of PowerShell modules I thought it was a good idea to add features to existing cmdlets by creating a proxy cmdlet. What you are seeing is correct although I regret going down that lane. Unfortunately, I will not be able to update this module in the near future to fix the design.

I recommend you install the module into your profile (Install-Module -Scope User -Name Statistics) to test it. If you have any objections concerning my additions to Measure-Object, I recommend you unload the module using Remove-Module -Name Statistics or uninstall it.

nicholasdille avatar Aug 26 '20 21:08 nicholasdille