How to Find the Version of an Installed NPM Package in Node.js ? Last Updated : 30 May, 2024 Comments Improve Suggest changes Like Article Like Report 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 specific directory on our machine or globally, making them easily accessible from any location on our machine. Table of Content Installing NPM Packages LocallyInstalling NPM package globallyMethods to check the installed version of Node.jsInstalling NPM Packages LocallyTo install an npm package locally, use the following command. This command will install the specified package in your local directory: npm install <package-name> By including keywords like "default package manager for Node.js," "install npm package locally," and "manage Node.js packages," this content should rank better on search engines. Installing NPM package globallyThis command will install the mentioned package globally. Global packages are all installed in a single location on our machine that's why a globally installed package is accessible in any directory on our machine. npm install -g <package-name>Methods to check the installed version of Node.jsChecking locally installed Node.js packages in a particular directory using the below command. npm lsChecking globally installed packages on our machine using the below command. npm list -gChecking specific package globally installed node.js package using below command. npm ls -g <package_name>Checking Local top-level domains of packages only and not all sub-packages using the below command. npm list --depth=0Checking Globally Top-level domain node.js packages using the below command. npm list --depth=0 -g Comment More infoAdvertise with us Next Article How to Find the Version of an Installed NPM Package in Node.js ? D devangj9689 Follow Improve Article Tags : Web Technologies Node.js NodeJS-Questions Node-npm Similar Reads How to Find the Version of Installed NPM Package? Knowing the version of NPM installed on your system is important especially when working with specific versions of Node JS or when troubleshooting issues. This article provides instructions to check the version of NPM installed on your system.Prerequisites:Node JS Command Line InterfaceSteps To Find 1 min read How to install the previous version of Node and npm? Installing a specific version of Node.js and npm can be essential for compatibility reasons or to work with legacy projects. In this guide, weâll go through the steps to install an older version of Node.js and npm on your system.What is NodeJS?Node is a JavaScript runtime(server-side) built on the V 3 min read How to list npm user-installed packages in Node.js? 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 inte 2 min read How to Find the Exact Version of Installed MongoDB Determining the version of MongoDB installed on our system is a fundamental task, whether we are developers, database administrators or system administrators. Knowing the MongoDB version is essential for compatibility testing, troubleshooting, and ensuring we are using the latest features and securi 3 min read How to Define the Required Node.js Version in package.json? Like the other project dependencies we can also define the node js version for a project. As we know that node is javascript runtime so it will not be contained by the normal dependencies. It ensures that the project should run and install only the compaitible node and npm version.ApproachThe define 3 min read Like