10/31/2016 - 5:26 PM

Uninstall local package

Uninstall local package

npm uninstall <package>

exmple : npm uninstall lodash

To remove it from the dependencies in package.json, you will need to use the save flag:

npm uninstall --save lodash

Note: if you installed the package as a "devDependency" (i.e. with --save-dev) then --save won't remove it from package.json You have use --save-dev to uninstall it.