Reputation: 2792
I'm running an npm script programatically (npm run script
) and checking the output
The additional lines that npm puts at the start are breaking the script, is it possible to instruct npm to be quiet but still show the output from the script?
The lines I'm talking about are:
> [email protected] do-thing /projects/my-package
> do-thing
I've tried --silent
which suppresses the script too. I've tried --quiet
which has no noticeable effect.
Upvotes: 5
Views: 313
Reputation: 2792
For now I'm appending | grep -v "^>" | sed '/^$/d'
to the end of the command which removes lines starting with > and blank lines. But this feels super clunky.
Upvotes: 1