1NPM-PREFIX(1) NPM-PREFIX(1)
2
3
4
6 npm-prefix - Display prefix
7
8 Synopsis
9 npm prefix [-g]
10
11 Description
12 Print the local prefix to standard out. This is the closest parent di‐
13 rectory to contain a package.json file or node_modules directory, un‐
14 less -g is also specified.
15
16 If -g is specified, this will be the value of the global prefix. See
17 npm help config for more detail.
18
19 See Also
20 • npm help root
21
22 • npm help bin
23
24 • npm help folders
25
26 • npm help config
27
28 • npm help npmrc
29
30
31
32
33 April 2021 NPM-PREFIX(1)