1 ---
2 title: npm-build
3 section: 1
4 description: Build a package
5 github_repo: npm/cli
6 github_branch: release/v6
7 github_path: docs/content/commands/npm-build.md
8 redirect_from:
9 - /cli-documentation/v6/build
10 - /cli-documentation/v6/cli-commands/build
11 - /cli-documentation/v6/cli-commands/npm-build
12 - /cli-documentation/v6/commands/build
13 - /cli-documentation/v6/commands/npm-build
14 - /cli-documentation/v6/npm-build
15 - /cli/v6/build
16 - /cli/v6/cli-commands/build
17 - /cli/v6/cli-commands/npm-build
18 - /cli/v6/commands/build
19 - /cli/v6/npm-build
20 ---
21
22 ### Synopsis
23
24 ```shell
25 npm build [<package-folder>]
26 ```
27
28 - `<package-folder>`: A folder containing a `package.json` file in its root.
29
30 ### Description
31
32 This is the plumbing command called by `npm link` and `npm install`.
33
34 It should generally be called during installation, but if you need to run it directly, run:
35
36 ```bash
37 npm build
38 ```
39
40 ### See Also
41
42 - [npm install](/cli/v6/commands/npm-install)
43 - [npm link](/cli/v6/commands/npm-link)
44 - [npm scripts](/cli/v6/using-npm/scripts)
45 - [package.json](/cli/v6/configuring-npm/package-json)