1 ---
2 title: npm-bin
3 section: 1
4 description: Display npm bin folder
5 github_repo: npm/cli
6 github_branch: release/v7
7 github_path: docs/content/commands/npm-bin.md
8 redirect_from:
9 - /cli-documentation/v7/bin
10 - /cli-documentation/v7/cli-commands/bin
11 - /cli-documentation/v7/cli-commands/npm-bin
12 - /cli-documentation/v7/commands/bin
13 - /cli-documentation/v7/commands/npm-bin
14 - /cli-documentation/v7/npm-bin
15 - /cli/v7/bin
16 - /cli/v7/cli-commands/bin
17 - /cli/v7/cli-commands/npm-bin
18 - /cli/v7/commands/bin
19 - /cli/v7/npm-bin
20 ---
21
22 ### Synopsis
23
24 ```bash
25 npm bin [-g|--global]
26 ```
27
28 Note: This command is unaware of workspaces.
29
30 ### Description
31
32 Print the folder where npm will install executables.
33
34 ### Configuration
35
36 #### `global`
37
38 - Default: false
39 - Type: Boolean
40
41 Operates in "global" mode, so that packages are installed into the `prefix` folder instead of the current working directory. See [folders](/cli/v7/configuring-npm/folders) for more on the differences in behavior.
42
43 - packages are installed into the `{prefix}/lib/node_modules` folder, instead of the current working directory.
44 - bin files are linked to `{prefix}/bin`
45 - man pages are linked to `{prefix}/share/man`
46
47 ### See Also
48
49 - [npm prefix](/cli/v7/commands/npm-prefix)
50 - [npm root](/cli/v7/commands/npm-root)
51 - [npm folders](/cli/v7/configuring-npm/folders)
52 - [npm config](/cli/v7/commands/npm-config)
53 - [npmrc](/cli/v7/configuring-npm/npmrc)