How to list npm user-installed packages in Node.js? Last Updated : 01 Feb, 2021 Comments Improve Suggest changes Like Article Like Report What is Node.js? Node.js is an open source and cross-platform runtime environment for executing JavaScript code outside of a browser. Click here for more. What is npm? Here, "npm" stands for "Node Package Manager" which is the package manager for Node.js and serves as a command-line utility for interacting with the npm to install different online packages and dependencies into the project or local environment. To run commands with npm, It is a pre-requisite to check that Node.js is installed in the local machine or not. If not true, then please install the latest version of Node.js from here:- https://nodejs.org/en/download/. After that, open a terminal and follow the step by step procedure. First Install npm globally or locally in your project after changing the current directory to your working directory using this command: npm install -g npm //for global or npm install // for local Example output: Now, to check the list of npm user-installed packages. We have to make use of the "npm-list" command in the current working directory where the npm is installed. Every installed package will be installed in the tree-like structure. $ npm list To discard listing of dependencies please use : $ npm list -g --depth= 0 Example output: To check if a specific package is installed globally execute: npm list -g [package-name] Example output: Comment More infoAdvertise with us Next Article How to list npm user-installed packages in Node.js? ashrayjha Follow Improve Article Tags : Technical Scripter Web Technologies Node.js Technical Scripter 2020 NodeJS-Questions +1 More Similar Reads How to Find the Version of an Installed NPM Package in Node.js ? NPM is the default package manager for Node.js. NPM manages both internal and external packages or modules used in various Node.js applications. The default packages in NPM may not fulfil all the needs of a developer, so we often require external packages. These can be installed either locally in a 2 min read How To Get a List of Globally Installed NPM Packages in NPM? To get a list of globally installed NPM packages, there are several methods you can use depending on the level of detail and format you need. Below, weâll cover two main approaches that utilize different commands to retrieve this information: npm list and npm ls.Table of ContentApproach 1: Using 'np 2 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 How to Install NPM FS in Node JS ? The file system module allows you to work with the file system on your computer NodeJS includes the fs module, to communicate with file systems. It provides functionality for interacting with the file system, such as reading from and writing to files, creating and removing directories, etc. The File 4 min read How To Use Node Modules with npm and package.json NodeJS is a powerful runtime for server-side JavaScript & these modules are reusable pieces of code that can be easily imported and used in NodeJS applications. npm (Node Package Manager) is the default package manager for Node JS and is used to install, manage, and publish NodeJS packages. This 3 min read Like