How to install the previous version of Node and npm ?
In this article, we will learn how to install the previous versions of the nodejs and npm using terminal commands.
NPM (Node Package Manager):
NPM (Node Package Manager) is bundled with Node.js and automates package and dependency management for Node.js projects. By running “npm install,” users can instantly fetch and install project dependencies. It enables version control to prevent project disruptions and ensures seamless onboarding for new contributors.
Installing the previous version of Node JS and NPM:
Step 1: Check the installed version of Node and NPM on the computer use the following command respectively
node -v and npm -v
node --version and npm --version
Step 2: For installing the previous version of Node use the following command:
npm install -g node@version
npm install -g email@example.com
sudo apt-get install nodejs=version-1chl1~precise1
sudo apt-get install nodejs=10.9.0-1chl1~precise1
Step 3: To install previous version of NPM use the following command:
npm install -g npm@version
npm install -g firstname.lastname@example.org
sudo apt-get install npm=version-1chl1~precise1
sudo apt-get install npm=4.0.0-1chl1~precise1
Share your thoughts in the comments
Please Login to comment...