reggi/dev-engines
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 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) |