npm r <package...>
Uninstall a package
Arguments
Name | Description |
---|---|
package |
Options
Name | Description |
---|---|
-S, --save | Package will be removed from your dependencies |
-D, --save-dev | Package will appear in your `devDependencies` |
-O, --save-optional | Package will appear in your `optionalDependencies` |
--no-save | Prevents saving to `dependencies` |
-g | Uninstall global package |
-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 |