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

Verbose flag is not working. #7

Open
sprakash57 opened this issue Apr 4, 2021 · 1 comment
Open

Verbose flag is not working. #7

sprakash57 opened this issue Apr 4, 2021 · 1 comment

Comments

@sprakash57
Copy link

sprakash57 commented Apr 4, 2021

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?

@sprakash57 sprakash57 changed the title Verbose flag not working. Verbose flag is not working. Apr 4, 2021
@mbehzad
Copy link

mbehzad commented May 13, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants