Skip to content

Verbose flag is not working. #7

Open

Description

@sprakash57

What is happening?

Setting the verbose flag true for one of my tasks does not print installation logs in the terminal.

Description

I am using pkg-install with listr. One of the tasks is to install all the dependencies as well as print installation logs (like what usually prints when you do npm install). It is installing the dependencies completely fine, but doing it silently without printing anything in the terminal.

import { projectInstall } from 'pkg-install';
....
....
 const tasks = new list([
. . . .  . .
. . . . . .  .

{
      title: 'Installing dependencies. It will take few minutes. Please do not cancel the installation.',
      task: () => projectInstall({ cwd: newOptions.target, verbose: true })
}

... . . . . .
])

Am I missing something?

Activity

  1. changed the title [-]Verbose flag not working.[/-] [+]Verbose flag is not working.[/+] on Apr 4, 2021
  2. mbehzad commented on May 13, 2024

    @mbehzad

    In another issue: #2 (comment) someone was suggesting to use the stdio option, which seems to work:

    await projectInstall({
        cwd: newOptions.target,
        stdio: ["pipe", process.stdout, process.stderr],
      });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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