Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • NodeJS Tutorial
  • NodeJS Exercises
  • NodeJS Assert
  • NodeJS Buffer
  • NodeJS Console
  • NodeJS Crypto
  • NodeJS DNS
  • NodeJS File System
  • NodeJS Globals
  • NodeJS HTTP
  • NodeJS HTTP2
  • NodeJS OS
  • NodeJS Path
  • NodeJS Process
  • NodeJS Query String
  • NodeJS Stream
  • NodeJS String Decoder
  • NodeJS Timers
  • NodeJS URL
  • NodeJS Interview Questions
  • NodeJS Questions
  • Web Technology
Open In App
Next Article:
NPM latest-version
Next article icon

Installing Specific NPM Version

Last Updated : 13 May, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

NPM(Node Package Manager) is the default package manager for the Node.js JavaScript runtime environment. It allows developers to easily manage project dependencies, share and reuse code, and automate various development tasks.

NPM is also used for installing, publishing, and managing third-party packages and modules, making it a crucial tool in the Node.js ecosystem. npm provides a vast ecosystem of packages, enabling developers to leverage existing code and libraries to build applications more efficiently. npm is free to use and helps save developers time by not having to write everything from scratch.

Prerequisites:

  • NPM & Node.js

Steps to Install the specific version of NPM

Step 1 : To check the current version of npm, we need to use the following command by opening the command promp.

npm --version

Here, current version of npm is 8.19.3.

Step 2 : To install the specific version of NPM, we can use the following command

npm install -g npm@`version_number`

In the place of `version_number`, we need to specify the version of npm, that we want to install. We need to wait for the installation process to complete. NPM will download and install the specified version of npm in our project's node_modules directory.

Example: Let us try to install npm version 7.24.0

Screenshot-2024-05-07-185238

Here, we can clearly see that, our initial version of NPM is 8.19.3, and then we installed version 7.24.0 using the given command, and it got installed. We also verified it using npm --version command after installing.

Conclusion

By following the above mentioned steps, we can easily install and manage the specific npm version as per our project requirements.


Next Article
NPM latest-version

S

srinijavoruganti
Improve
Article Tags :
  • Web Technologies
  • Node.js
  • Node-npm

Similar Reads

  • How to Install Specific NPM Version ?
    Node Package Manager (npm) is the default package manager for Node.js and is crucial for managing JavaScript libraries and frameworks. Sometimes, you may need to install a specific version of npm to ensure compatibility with certain projects, scripts, or tools. This article explains how to install a
    2 min read
  • How To Install Specified Directory Using NPM?
    To install a specified directory using npm, you can use npm’s ability to install local modules directly from a directory on your machine. This is particularly useful when you're working with custom packages, private modules, or developing a project across multiple repositories and need to share a mo
    3 min read
  • How To Uninstall Specific Version In Numpy
    NumPy is a fundamental library in Python programming. In the development of projects, versioning allows development teams to keep track of changes they make to the project code. The changes could be functions, features, bug fixes, and more. So that is managing library versions becomes crucial. With
    2 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
    3 min read
  • NPM latest-version
    In Node.js development, staying up-to-date with the latest versions of npm packages is essential for ensuring security, stability, and access to new features. The npm latest version command provides a convenient way to check for the most recent version of a package available on the npm registry. In
    3 min read
  • How to check NumPy version installed?
    In this article, we are going to learn how we can find out which version of NumPy your Python code uses. The version of any project keeps on changing with time as the project gets updated, new features keep being added, and old bugs are removed. Hence, a lot of work keeps on happening on projects es
    2 min read
  • 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 Fin
    1 min read
  • How to Install Yarn with NPM ?
    Yarn is used for handling dependencies within JavaScript applications. It serves as both a package manager and a project manager. Whether you work on basic projects or complex industry-level monolithic repositories, whether you contribute to open-source initiatives or are part of an enterprise envir
    4 min read
  • NPM Version
    NPM, which stands for Node Package Manager, is the default package manager of Node.js. Developed by Isaac Z. Schlueter, NPM is written in JavaScript and was initially released on the 12th of January, 2010. As the default package manager, NPM is used to manage all the packages and the modules in Node
    2 min read
  • Where does NPM Install the packages ?
    NPM is the default package manager for Node.js , and it is used to install, manage, and distribute JavaScript packages. When you add a package using NPM install, the location of the installed package depends upon whether the package is installed globally or locally. Table of Content Local Installati
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences