question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clinic doesn't work with Powershell

See original GitHub issue

Hi. I have a lot of deprications during npm installation: https://i.imgur.com/c7UFe45.jpeg

Further… clinic doctor -- node server.js or clinic doctor --autocannon [ / ] -- node ./server.js

And…nothing, screen: https://i.imgur.com/700N9aQ.jpeg

P.S. I use Node 17, Win10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ovhemertcommented, Dec 14, 2021

@Arimanecro It seems to be an issue with PowerShell itself. Several resources on the web indicate this behaviour.

A double hyphen instructs PowerShell to treat everything coming after as literal arguments rather than options. To avoid that behaviour you can either quote (“–”, ‘–’) or escape (`–) the double hyphen.

This works for me in PS: clinic doctor '--' node server.js

cc @RafaelGSS : can you remove the “bug” label?.. maybe we can refer to this PS behaviour in the docs.

1reaction
RafaelGSScommented, Dec 6, 2021

Hi @Arimanecro, could you check if some of those approaches work?

  • Check it with Node v16
  • Use clinic@9
  • Use a different operating system (I know that in some cases you cannot do that, in case, just skip it)
Read more comments on GitHub >

github_iconTop Results From Across the Web

PowerShell Clinic – Cimitra
PowerShell Scripting Introductory Clinic. A introductory guide to PowerShell Scripting – PowerShell Version 7 is used in this clinic.
Read more >
PowerShell is not recognized as an internal or external ...
Cause. This is caused by the user (or system) PATH environment variable not containing the directory where the PowerShell executable resides.
Read more >
Powershell stopped working Windows 10 - Microsoft Community
"powershell has stopped working. A problem did that the program stopped working correctly. The program has been shut shut down and you will ......
Read more >
Problems you solved at work with powershell - Reddit
Hi, was trying to see some real-world examples of powershell being applied, so that I could try to tackle the issues myself and...
Read more >
Best Fixes: PowerShell Not Opening on Windows 11 - MiniTool
Way 1: Restart Your Computer; Way 2: Run an SFC Scan; Way 3: Create a New User Account; Way 4: Use another Way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found