title: npm command to uninstall or prune unused packages in Node.js
body: <p>Is there a way to simply uninstall all unused (undeclared) dependencies from a Node.js project (ones that are no longer defined in my <code>package.json</code>.) When I update my application I like to have the unreferenced packages removed automatically.</p>