npm prune [[<@scope>/]<pkg>]
Remove extraneous packages
Arguments
Name | Description |
---|
[<@scope>/]<pkg> | |
Options
Name | Description |
---|
--omit <Package type> | - Repeatable ♾
- Repeatable 3x
|
--dry-run | Indicates that you don't want npm to make any changes and that it should only report what it would have done |
--json | Show output in json format |
--production | Remove the packages specified in your devDependencies |
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |