mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 02:47:34 +00:00
34 lines
682 B
Plaintext
34 lines
682 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# npm rebuild
|
|
|
|
> Rebuild native Node.js packages after Node or dependency changes.
|
|
> More information: <https://docs.npmjs.com/cli/npm-rebuild/>.
|
|
|
|
- Rebuild a specific package:
|
|
|
|
`npm {{[rb|rebuild]}} {{package}}`
|
|
|
|
- Rebuild all installed packages:
|
|
|
|
`npm {{[rb|rebuild]}}`
|
|
|
|
- Rebuild with verbose output:
|
|
|
|
`npm {{[rb|rebuild]}} --verbose`
|
|
|
|
- Rebuild a package in a specific directory:
|
|
|
|
`npm {{[rb|rebuild]}} --prefix {{path/to/dir}} {{package}}`
|
|
|
|
- Rebuild without using the npm cache:
|
|
|
|
`npm {{[rb|rebuild]}} --no-cache`
|
|
|
|
- Rebuild in global mode:
|
|
|
|
`npm {{[rb|rebuild]}} {{[-g|--global]}}`
|