Skip to Content
DocsutooCommandsrebuild

rebuild

Rebuild script hooks in all packages.

Alias: rb

Usage

Terminal
ut rebuild [OPTIONS]

Examples

Terminal
# Rebuild all packages ut rebuild ut rb

Options

OptionDescription
--verboseEnable debug logging

What It Does

Re-runs install scripts for all packages in node_modules, including:

  • preinstall
  • install
  • postinstall

Use Cases

  • After native module compilation fails
  • When switching Node.js versions
  • Fixing broken binary dependencies (e.g., esbuild, swc)
Last updated on