npmjs.com

Remove extraneous packages

npm.commands.prune([packages,] callback)

This command removes "extraneous" packages.

The first parameter is optional, and it specifies packages to be removed.

No packages are specified, then all packages will be checked.

Extraneous packages are packages that are not listed on the parent package's dependencies list.

Last modified May 20, 2015           Found a typo? Send a pull request!

Getting Started

Using npm

npm Enterprise

CLI Commands

Configuring npm

Using npm programmatically

npm policy documents

View All On One Page