Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downgrade NodeJs Version and express version

Currently I am working on a nodejs project. I have installed Express 3.X which is in alpha stage, and my node version is also at 0.7.2-pre. I am currently trying to downgrade my express version, via npm, but it seems that i have to downgrade my node version as well.

What is the best way to achieve this? How do i down grade my node version. Thank you very much.

like image 606
theintersect Avatar asked May 17 '12 10:05

theintersect


People also ask

How do I change nodejs to downgrade?

Updating Node using the installers (or downgrading) Just visit the Node installers page at https://nodejs.org/en/download/ and download and install the latest node version. From the “previous releases” section at the bottom of the page, you can select a specific version to install.

Can I install 2 versions of node js?

NVM allows installing multiple node js versions on the same machine and switching between the required node js version.


2 Answers

To easy the node version management you can use an npm package called n

like image 175
BFil Avatar answered Sep 23 '22 17:09

BFil


There are tools that allow you to have multiple versions of Node installed - e.g. NVM - so you could do that.

However, to answer the question, you will need to re-install Node I'm afraid. Thankfully installing from source is pretty easy though a little slow. Just follow the installation instructions on the GitHub page.

like image 39
Julian Knight Avatar answered Sep 20 '22 17:09

Julian Knight