Skip to content

Install fails without -AllowClobber #51

@bartecargo

Description

@bartecargo

The installation instructions imply that Pansies is optional:

NOTE: If you don't have my PANSIES module for ANSI Escape Sequences, you may want to install that separately

However, I'm unable to install the PowerLine module because it appears to want to pull in the Pansies module, yet I don't want to clobber Write-Host:

C:\WINDOWS\system32> Install-Module PowerLine                                                                          
PackageManagement\Install-Package : The following commands are already available on this system:'Write-Host'. This
module 'Pansies' may override the existing commands. If you still want to install this module 'Pansies', use
-AllowClobber parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
   Exception
    + FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.Pack
   ageManagement.Cmdlets.InstallPackage

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions