summaryrefslogtreecommitdiff
path: root/deps/npm/docs/content/cli-commands/npm-rebuild.md
blob: 414b9ca55a193229d33a62e1d50800d1b7407b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
section: cli-commands 
title: npm-rebuild
description: Rebuild a package
---

# npm-rebuild(1)

## Rebuild a package

### Synopsis

```bash
npm rebuild [[<@scope>/<name>]...]

alias: npm rb
```

### Description

This command runs the `npm build` command on the matched folders.  This is useful when you install a new version of node, and must recompile all your C++ addons with the new binary.

### See Also

* [npm build](/cli-commands/npm-build)
* [npm install](/cli-commands/npm-install)