Update for npm 5:
As of npm 5.0.0, installed/uninstalled modules are added/removed as a dependency by default, so the --save--save option is no longer needed.
runRun
npm uninstall <package> forFor example:
npm uninstall mongodb It will remove the module from node_modulesthe node_modules folder and package.json file also the package.json file.