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

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

Open
danijeljw opened this issue Mar 19, 2020 · 0 comments
Open

Comments

@danijeljw
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant