Skip to content

Exception setting "TreatControlCAsInput": "The handle is invalid. #8

@danijeljw

Description

@danijeljw
PS C:\Users\admin-user\Documents\WindowsPowerShell\Modules> Start-NodePSServer
 
  Welcome to NodePS Server
 
 
  You can start browsing your webpage from:
  http://localhost:8080
 
 
  Thanks for using NodePS Server..
 
 
 
Exception setting "TreatControlCAsInput": "The handle is invalid.
"
At C:\Users\admin-user\Documents\WindowsPowerShell\Modules\nodeps\Public\Start-NodePSServer.ps1:382 char:13
+             [console]::TreatControlCAsInput = $false
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationException
    + FullyQualifiedErrorId : ExceptionWhenSetting
 
Exception setting "TreatControlCAsInput": "The handle is invalid.
"
At C:\Users\admin-user\Documents\WindowsPowerShell\Modules\nodeps\Public\Start-NodePSServer.ps1:370 char:13
+             [System.Console]::TreatControlCAsInput = $true
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationException
    + FullyQualifiedErrorId : ExceptionWhenSetting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions