How to remove all Global Modules in Node.js ? Last Updated : 01 Jul, 2020 Comments Improve Suggest changes Like Article Like Report Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside of a browser. You need to remember that Node.js is not a framework and it’s not a programming language. Most of the people are confused and understand it’s a framework or a programming language. We often use Node.js for building back-end services like APIs like Web App or Mobile App. It is used in production by large companies such as Paypal, Uber, Netflix, Wallmart, and so on. We can remove all the module globally in Node.js by the following ways: For Linux (Ubuntu) users: In order to uninstall the globally installed package_name package, the following command can be used (using sudo if necessary, depending on your setup and permissions). sudo npm rm --global package_name To check whether the package is installed globally or not, use below command: npm ls --global packae_name Below images display the use of above command to uninstall express package globally: For Window users: The Windows user can remove all the Node.js modules globally by just deleting the content of the following directory: C:\Users\username\AppData\Roaming\npm Steps to remove Global Modules: Press win + r (win = Windows button) from keyboard and a dialog box will appear as shown below: Now type %appdata%/npm in the text field and press enter button as shown below: The directory will have files and folders as shown below: Now delete the content of this directory. All the global node modules are removed properly. Comment More infoAdvertise with us Next Article How to remove all Global Modules in Node.js ? R Rajnis09 Follow Improve Article Tags : Web Technologies Node.js Node.js-Misc Similar Reads How to add new functionalities to a module in Node.js ? Node.js is an open-source and cross-platform runtime environment built on Chromeâs V8 JavaScript engine for executing JavaScript code outside of a browser. You need to recollect that NodeJS isnât a framework, and itâs not a programming language. In this article, we will discuss how to add new functi 3 min read How to use EcmaScript Modules in Node.js ? Using ECMAScript Modules (ES Modules or ESM) in Node.js allows you to take advantage of modern JavaScript syntax for organizing and managing your code. ECMAScript Modules provide a more structured and standardized way to work with modules compared to CommonJS, which has been traditionally used in No 2 min read How to resolve a "Cannot find module" error using Node.js? This article outlines the steps you can take to troubleshoot and fix "Cannot find module" errors in your Node.js projects. These errors typically arise when Node.js cannot locate a module you're trying to use in your code. Table of Content Error "Cannot find module" Approach to Solve the ErrorInstal 3 min read How To Create Modules in NodeJS? Modules are the building blocks of NodeJS code. They help you break down your project into smaller, manageable pieces, each with its own job.To create a module, just make a JavaScript file and export what you want to share. Other files can then import and use those exports, adding that functionality 3 min read How to install modules without npm in node.js ? We can install modules required for a particular project in node.js without npm, the recommended node package manager using yarn. Yarn is a wonderful package manager. Like npm, if you have a project folder with package.json containing all the required dependencies mentioned for the project, you can 3 min read Like