npm rebuild <[<@scope>/]<pkg>[@<version>]>

Rebuild a package

Arguments

NameDescription
[<@scope>/]<pkg>[@<version>]

Options

NameDescription
-g, --globalOperates in 'global' mode, so that packages are installed into the prefix folder instead of the current working directory
-w, --workspace <workspace...>Enable running a command in the context of the configured workspaces of the current project
-ws, --workspacesEnable running a command in the context of all the configured workspaces
--ignore-scriptsIf true, npm does not run scripts specified in package.json files
--no-bin-linksTells npm to not create symlinks (or .cmd shims on Windows) for package executables