Ashley Coolman
Ashley Coolman

Reputation: 11585

How to stop npm run my-script from outputting "script info", before the actual script output

When I run the following:

$ npm run test

There is some info on the run script:

> [email protected] test /Users/me/my-module
> echo "Error: no test specified" && exit 1

Followed by the actual output:

Error: no test specified

Is there a way to stop npm from outputting the info on the run script

Upvotes: 0

Views: 93

Answers (1)

mscdex
mscdex

Reputation: 106696

You can add a -s option to make npm silent (tested with npm v3.10.8): npm run test -s.

Upvotes: 2

Related Questions