mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 19:48:12 +00:00

PR-URL: https://github.com/nodejs/node/pull/34246 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
35 lines
645 B
Markdown
35 lines
645 B
Markdown
---
|
|
section: cli-commands
|
|
title: npm-build
|
|
description: Build a package
|
|
---
|
|
|
|
# npm-build(1)
|
|
|
|
## Build a package
|
|
|
|
### Synopsis
|
|
```shell
|
|
npm build [<package-folder>]
|
|
```
|
|
|
|
* `<package-folder>`:
|
|
A folder containing a `package.json` file in its root.
|
|
|
|
### Description
|
|
|
|
This is the plumbing command called by `npm link` and `npm install`.
|
|
|
|
It should generally be called during installation, but if you need to run it
|
|
directly, run:
|
|
```bash
|
|
npm run-script build
|
|
```
|
|
|
|
### See Also
|
|
|
|
* [npm install](/cli-commands/npm-install)
|
|
* [npm link](/cli-commands/npm-link)
|
|
* [npm scripts](/using-npm/scripts)
|
|
* [package.json](/configuring-npm/package-json)
|