How can I uninstall npm modules in Node.js?

Answer

Alias can be used to to uninstall node_modules package

un alias for uninstall

removes single package

- npm un <PACKAGE_NAME>

removes multiple packages by adding space between packages names

- npm un <PACKAGE_NAME_1> <PACKAGE_NAME_2>

removes all node_modules packages

- rm -rf node_modules/

 

All npm Questions

Ask your interview questions on npm

Write Your comment or Questions if you want the answers on npm from npm Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---