npm:uninstall
The npm:uninstall
action installs dependencies using npm.
Usage
{
type: 'npm:uninstall',
packages: ['express', 'pug'],
params: [],
packageManager: 'npm'
}
Options
target
Type: string
Default: process.cwd()
The directory where the packages will be uninstalled from.
packages
Type: Array<string>
Default: []
List of packages to uninstall.
params
Type: Array<string>
Default: []
List of additional parameters to pass to the npm uninstall command.
packageManager
Type: string
Default: 'npm'
The package manager to use. Can be either 'npm'
or 'yarn'
.
Examples
Uninstall express
and pug
using npm
{
type: 'npm:uninstall',
packages: ['express', 'pug']
}
Uninstall express
and pug
using yarn
{
type: 'npm:uninstall',
packages: ['express', 'pug'],
packageManager: 'yarn'
}