clinicjs / node-clinic

Clinic.js diagnoses your Node.js performance issues
https://clinicjs.org
MIT License
5.67k stars 125 forks source link

Examples not working #389

Closed sebinjoseph97 closed 1 year ago

sebinjoseph97 commented 1 year ago

Similar help message displayed for all commands passed and the examples are too not working. I have the node version 17

RafaelGSS commented 1 year ago

Can you provide a reproducible code?

sadovenk0 commented 1 year ago

I have the same problem when I try to run "clinic doctor -- node dist\main.js" it returns a message listing all the commands as examples that should work but nothing works

sadovenk0 commented 1 year ago

I have the same problem when I try to run "clinic doctor -- dist\main.js" it returns a message listing all the commands as examples that should work but nothing works

solved the problem by changing powershell to cmd

GorlikItsMe commented 1 year ago

The error occurs in windows 10 when using PowerShell. It does not analyze the code. It only displays help. It looks like everything after -- is ignored. Command what I used in my project: clinic flame -- node dist/commands/debug.js

Like @sadovenk0 said problem don't occur when you use cmd instead PowerShell

RafaelGSS commented 1 year ago

See: https://github.com/clinicjs/node-clinic#windows--powershell