Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

399
Visualizações
Can't start Clinic.js, what should I do?

At startup: clinic doctor --on-port 'autocannon -m POST localhost:8000/users/register' -- node dist/main.js

Gives help log: Clinic.js Doctor - v9.2.0

clinic doctor is the first step in profiling your application. It will show you what kind of problem you are having and recommend the path forward.

To run clinic doctor

clinic doctor -- node server.js

Once you exit (Ctrl-C) the process, your report will open in a browser window. You can disable this behavior:

clinic doctor --open=false -- node server.js

If profiling on a server, it can be useful to only do data collection:

clinic doctor --collect-only -- node server.js

You can then transfer the data and visualize it locally:

clinic doctor --visualize-only PID.clinic-doctor-sample

You can use the --autocannon flag to simulate load on your server. --autocannon accepts configuration for autocannon using "subarg" syntax:

clinic doctor --autocannon [ -m POST /api/example ] -- node server.js

When configuring --autocannon, the $PORT environment variable contains the port your server is listening on:

clinic doctor --autocannon [ -m POST 'http://localhost:$PORT/?\$page=1' ] -- node server.js

Note that dollar signs ($) appearing in the URL must be escaped, else they will be treated as environment variables as well.

Flags -h | --help Display Help -v | --version Display Version --collect-only Do not process data on termination --visualize-only datapath Build or rebuild visualization from data --sample-interval interval Sample interval in milliseconds --on-port Run a script when the server starts listening on a port. --autocannon Run the autocannon benchmarking tool when the server starts listening on a port. --open Boolean to enable or disable your report opening in your web browser. --dest Destination for the collected data (default .clinic/).

OS: Windows

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you're using Powershell to run it, it will not work. I don't know why exactly but I had the same issue. it's working fine with CMD.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda