Skip to content

Commit ea948dc

Browse files
styflewraithgar
andauthored
docs: update description of npm exec (#5881)
* chore(docs): update description of npm exec Co-authored-by: Gar <wraithgar@github.com>
1 parent ffbdea2 commit ea948dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/lib/content/commands/npm-exec.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ specified multiple times, to execute the supplied command in an environment
2626
where all specified packages are available.
2727

2828
If any requested packages are not present in the local project
29-
dependencies, then they are installed to a folder in the npm cache, which
30-
is added to the `PATH` environment variable in the executed process. A
31-
prompt is printed (which can be suppressed by providing either `--yes` or
32-
`--no`).
29+
dependencies, then a prompt is printed, which can be suppressed by
30+
providing either `--yes` or `--no`. When standard input is not a TTY or a
31+
CI environment is detected, `--yes` is assumed. The requested packages are
32+
installed to a folder in the npm cache, which is added to the `PATH`
33+
environment variable in the executed process.
3334

3435
Package names provided without a specifier will be matched with whatever
3536
version exists in the local project. Package names with a specifier will

0 commit comments

Comments
 (0)