Skip to main content
Active reading [<https://en.wikipedia.org/wiki/Node.js>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

To uninstall the nodeNode.js module:

npm uninstall <module_name>  

This will remove the module from node_modulesfolder node_modules, but not from package.jsonfile package.json. So when we do npm install again it will download the module.

So to remove the module from package.jsonfile package.json, use:

npm uninstall <module_name> --save  

This also deletedeletes the dependency from package.jsonfile package.json.

And if you want to uninstall any globally module you can use:

npm -g uninstall <module_name> --save  

This will deletedelete the dependency globally.

To uninstall the node module:

npm uninstall <module_name>  

This will remove the module from node_modules, but not from package.json. So when we do npm install again it will download the module.

So to remove the module from package.json use:

npm uninstall <module_name> --save  

This also delete the dependency from package.json.

And if you want to uninstall any globally module you can use:

npm -g uninstall <module_name> --save  

This will delete the dependency globally.

To uninstall the Node.js module:

npm uninstall <module_name> 

This will remove the module from folder node_modules, but not from file package.json. So when we do npm install again it will download the module.

So to remove the module from file package.json, use:

npm uninstall <module_name> --save 

This also deletes the dependency from file package.json.

And if you want to uninstall any globally module you can use:

npm -g uninstall <module_name> --save 

This will delete the dependency globally.

Source Link
Vishnu Mishra
  • 4k
  • 3
  • 27
  • 37

To uninstall the node module:

npm uninstall <module_name> 

This will remove the module from node_modules, but not from package.json. So when we do npm install again it will download the module.

So to remove the module from package.json use:

npm uninstall <module_name> --save 

This also delete the dependency from package.json.

And if you want to uninstall any globally module you can use:

npm -g uninstall <module_name> --save 

This will delete the dependency globally.