Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/commands/npm-prefix.md')
-rw-r--r--docs/content/commands/npm-prefix.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/content/commands/npm-prefix.md b/docs/content/commands/npm-prefix.md
new file mode 100644
index 000000000..e2bd52a18
--- /dev/null
+++ b/docs/content/commands/npm-prefix.md
@@ -0,0 +1,28 @@
+---
+title: npm-prefix
+section: 1
+description: Display prefix
+---
+
+### Synopsis
+
+```bash
+npm prefix [-g]
+```
+
+### Description
+
+Print the local prefix to standard out. This is the closest parent directory
+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`](/cli-commands/config) for more detail.
+
+### See Also
+
+* [npm root](/cli-commands/root)
+* [npm bin](/cli-commands/bin)
+* [npm folders](/configuring-npm/folders)
+* [npm config](/cli-commands/config)
+* [npmrc](/configuring-npm/npmrc)