From 5d076351d7ec1d3585942a9289548166a7fbbd4c Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Wed, 9 Jan 2019 22:55:40 +0100 Subject: doc: fix npm-prefix description (#116) PR-URL: https://github.com/npm/cli/pull/116 Fixes: https://npm.community/t/4054 Credit: @larsgw Reviewed-By: @aeschright --- doc/cli/npm-prefix.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/cli/npm-prefix.md b/doc/cli/npm-prefix.md index f262a36a7..d36e53813 100644 --- a/doc/cli/npm-prefix.md +++ b/doc/cli/npm-prefix.md @@ -8,7 +8,8 @@ npm-prefix(1) -- Display prefix ## DESCRIPTION Print the local prefix to standard out. This is the closest parent directory -to contain a package.json file unless `-g` is also specified. +to contain a `package.json` file or `node_modules` directory, unless `-g` is +also specified. If `-g` is specified, this will be the value of the global prefix. See `npm-config(7)` for more detail. -- cgit v1.2.3