Usage
Parameters
Name of the package to remove. Can specify multiple packages.
Options
Remove from global packages instead of local.
Enable verbose output.
Display help information.
Examples
Remove a package
Remove multiple packages
Remove from global
Package not found
Behavior
- Removes package from
package.jsondependencies or devDependencies - Updates
ant.lockblockfile - Removes unused dependencies from
node_modules - Re-installs remaining dependencies
Removing Dependencies vs DevDependencies
Ant automatically detects whether the package is independencies or devDependencies and removes it from the correct section.
Transitive Dependencies
Removing a package also removes its dependencies if they’re not required by other packages:Global Removal
Global packages are removed from~/.ant/pkg/global/node_modules and their binaries are unlinked from ~/.ant/bin.
Related
- ant add - Add packages
- ant install - Install dependencies