Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails without -AllowClobber #51

Open
bartecargo opened this issue Sep 4, 2019 · 1 comment
Open

Install fails without -AllowClobber #51

bartecargo opened this issue Sep 4, 2019 · 1 comment

Comments

@bartecargo
Copy link

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
@Jaykul
Copy link
Owner

Jaykul commented Oct 26, 2019

I can clarify that in the docs, but you're right, PANSIES is not optional.
It does a lot of the work of dealing with colors.
Additionally, it's Write-Host is fully backward compatible and is faster than the built-in Write-Host.

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

No branches or pull requests

2 participants