1The command is simply npm uninstall <name>
2// Here are different options:
3// - removes the module from node_modules but
4// does NOT update package.json
5npm uninstall <name>
6
7// - removes it from dependencies in package.json aswell
8npm uninstall <name> --save
9
10// - removes it from devDependencies in package.json aswell
11npm uninstall <name> --save-dev
12
13// - also removes it globally
14npm uninstall -g <name> --save
15
16// If you're removing a global package, however, any applications
17// referencing it will crash.
18
19// A local install will be in the node_modules/ directory of your
20// application. This won't affect the application if a module remains
21// there with no references to it.
22
23// The Node.js documents https://npmjs.org/doc/ have all the commands
24// that you need to know with npm.
1Simply use below command in cmd and change module_name with different modules
2
3>npm uninstall <module_name>