Windows-screenFetch icon indicating copy to clipboard operation
Windows-screenFetch copied to clipboard

Command conflict 'Get-Uptime'

Open yihuajack opened this issue 5 years ago • 2 comments

When I run Install-Module -Name windows-screenfetch on PowerShell 7.0.1, it gives me an error:

Install-Package: D:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9709                                 Line |                                                                                                                  9709 |  … talledPackages = PackageManagement\Install-Package @PSBoundParameters                                             |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                              | The following commands are already available on this system:'Get-Uptime'. This module                                 | 'windows-screenfetch' may override the existing commands. If you still want to install this module
     | 'windows-screenfetch', use -AllowClobber parameter.

The output of Get-Command Get-Uptime is

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-Uptime                                         7.0.0.0    Microsoft.PowerShell.Utility

yihuajack avatar May 20 '20 08:05 yihuajack

I have the same issue:

Install-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9709
Line |
9709 |  … talledPackages = PackageManagement\Install-Package @PSBoundParameters
     |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The following commands are already available on this system:'Get-Uptime'. This module
     | 'windows-screenfetch' may override the existing commands. If you still want to install this module
     | 'windows-screenfetch', use -AllowClobber parameter.

martinmine avatar May 21 '20 11:05 martinmine

This is probably due to a naming conflict in Data.psm1, I will try addressing this in the next major build

JulianChow94 avatar May 25 '20 20:05 JulianChow94