How to install previous version of Node.js? - node.js

I am new to Node.js. The project i will be working on use 4.2.6 version. Im not sure How do i install this version on my local machine ( its Windows 10 64 bit). I tried browsing to previous versions here but there is no installer there.
The current Windows Installer on Nodejs.org in 4.3.1.

The installer is there, it's named node-v4.2.6-x64.msi.

You can use node version management. For example, marcelklehr/nodist:
> nodist + v4.2.6
# Just checks, if the version is installed and downloads it if not.

Related

Unable to downgrade Node to specific version

I am building a sample application in which I need to use Node Version v9.11.2 and npm 4.0.0. Currently I have Node Version v16.4.0 installed on my system. I tried to install the specific version by uninstalling the latest version and installing version 9.11.2 from official website
Problem: The problem is I can uninstall the latest version without any problem but when I try to install older version(9.11.2) the command gets opened and it does nothing. I also tried to install the older version using cli commands ie. npm install -g node#9.11.2, it installs the version but on checking the version using node -v, it still shows the latest version(16.4.0)
Below are the screenshots for better understanding
Installed version 9.11.2 but showing 16.4.0
Any Solution please ?
Is using docker a possibility? If so you can simply get a docker image of the required version and use if from there.
Another way is to use NVM which is a really useful tool to manage nodejs versions. I'm including their github repo for your convenience:
https://github.com/nvm-sh/nvm
A good option is to use NVM: https://github.com/coreybutler/nvm-windows (Windows) or https://github.com/nvm-sh/nvm (unix, macOS). With NVM you can enable different versions of node on the same machine and switch from one to another, usually it takes care of managing the installed packages and adding them to its own management system.

I installed node.js v5.12.0 but the version showing v0.12.2

I installed Node.js from (https://nodejs.org/dist/latest-v5.x/node-v5.12.0-x64.msi), but the issue is , its showing version v0.12.2 instead of v5.12.0 which is required.
I try to update the node.js 5.2 installer but still showing version v0.12.2.
I have uninstalled Node.js and reinstall node-v5.12.0-x64.msi but still it’s not updated. Due to this am not able to run further commands for Ionic environmental setup.
Open a terminal and type where node
It should point to an old version of node (v0.12.2) still installed on your computer, for example C:\bin\node.
As Node.js is portable, you can have multiple versions on your computer.
If it cannot be uninstalled, simply delete C:\bin\node folder.
Then:
Open Windows System Properties/Advanced system properties
Click on Environment variables and edit PATH variable
Remove inside its value the path of the old version of node (C:\bin\node in our example).
Re-install Node v5.
Close your terminal and open a new one then type where node, it should point to Node.js v5
Most likely, you have an old Node version for x86 platform, and you are installing a newer version for 64 bit. Remove the path to the x86 from the Paths env variable, or move it to after the 64 bit path.
Solution:
List node.js installatios using nvm:
nvm ls
High chance the version you tried to install is also listed
Select the version to use using nvm
nvm use
(Not a direct solution)
You can try to install using nvm
Uninstall nodejs and follow the instruction from https://github.com/coreybutler/nvm-windows

nodejs: Later version of Node.js is already installed. Setup will now exit

Version: 8.0.0 / 7.6.0 / 7.7.1
Platform: win 10 x64
i have installed 8.0.0 nightly before ( for use async )
when 7.6.0 out, i try install 7.6.0
installer show msg " Later version of Node.js is already installed. Setup will now exit "
i unzip Binary (.zip) for force install 7.6.0
but now
i wanna install 7.7.1
this msg show up again
i tryed search all node.js or 8.0.0 at Registry
and replace it to 7.6.0
the installer still not allow install
where can let me install new version without upzip for replace every time?
i can't use uninstaller
cos i don't sure what will be remove by uninstaller
my nodejs installed at msys2 folder
any way let me can do update new version by Windows Installer (.msi) ?
i just need update old nodejs version to Latest Current Version
by normal way at now and future
i didn't try uninstall,
cos my node install folder is "C:\msys64\mingw64\bin",
my node_modules at "C:\msys64\mingw64\bin\node_modules",
im "not sure" uninstaller will "only" remove node js and npm only without delete other file at "C:\msys64\mingw64\bin"
Execute the previous installed version of .msi (node-v8.9.0-x64.msi) file it will get in to the setup wizard and you can see the option for repair, remove, etc.. you can select remove, this will uninstall completely the previous version. now you can install your desired version.
search file at
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Node.js
Uninstall Node.js.lnk
C:\Windows\SysWOW64\msiexec.exe /x {65370F5F-81AF-453E-BD85-A05B561DB989}
search 65370F5F-81AF-453E-BD85-A05B561DB989 at Registry
(i use RegistryWorkshop
one of will like this
**HKEY_CLASSES_ROOT\Installer\Products** {xxx}
ProductIcon
edit DWORD Version 0x8000000 mean 8.0.0
edit it low or equal than version u wanna edit
like 0x7000000
than now can keep use installer like old day
go to Control Panel>All Control Panel Items>Programs and Features
uninstall Node JS.
Reinstall your preferred version from the Node JS website and good luck!
worked for me
Change Your NPM Version to LTE
Check please https://github.com/deepbag/nvs it's the best solution for this problem.
Node Version Switcher - A cross-platform tool for switching between versions and forks of Node.js
Install NVS ---- Command Line Run Administration Mode
Windows:
choco install nvs
Mac|Linux :
export NVS_HOME="$HOME/.nvs"git clone https://github.com/jasongin/nvs "$NVS_HOME". "$NVS_HOME/nvs.sh" install
Add LTS Version NVS ---- Command Line Run Administration Mode
$ nvs add lts
$ nvs use lts (Output : PATH += ~/.nvs/node/6.9.1/x64)
$ nvs link lts
$ npm install -g npm
Successful Your NPM Version Changed and Updated

How to upgrade nodejs from v0.12.2 on Windows?

I tried to install the latest version of NodeJS (v6.9.1 LTS and v7.1.0 Current) but I can't , ieven when I uninstall the nodeJS and install it again , I stuck with v0.12.2?
As a .net programmer , I need to instal visual studio 2015 , and I see the nodeJS v0.12.2 appears after I installed visual studio 2015.
anyone has any idea ?
Version v0.12.2 comes as a 32 bit installation with one of the Microsoft tools and it being in the path is picked up preferentially. To upgrade, install the 32 bit version of the nodejs from the official site. The path for this EXE is c:\Program Files(x86)\Nodejs
Once this is updated, you can uninstall the 32 bit version and install 64 bit version if needed.
I'm not sure how VS plays with NVM, but I'd recommend trying NVM: https://github.com/creationix/nvm
It lets you install multiple versions of Node.js. This is essential for a developer working on multiple Node projects which run different node versions.
nvm install 7.1
nvm use 7.1
node -v
> version 7.1
nvm install 4.4.9
nvm use 4.4.9
node -v
> version 4.4.9
You don't explain what you mean by "but I can't" - do you get any errors?
Since this question has too little details to answer I can only suspects what can be wrong. I suspect that you are installing the newer version of Node but the old is still a default. You need to set your PATH to include the path to the new Node earlier than the path to the old Node.
There are hundreds of tutorials online on how to install Node. Follow one of them and just make sure that your PATH is set up correctly.
it's a bit silly solution, but that's how it works for me.
Solution: Now I'm using Visual studio 2017 - the problem doesn't occur anymore!
basically I just upgrade to Visual Studio 2017 (clean install actually)

How to backup my Node.js setup when upgrading

I want to upgrade Node.js on Ubuntu, but I want to make sure that if anything goes wrong I could revert back my source code, installed modules and node binary to the working setup. How to achieve that?
You can install any version of node.js just go to downloads. Go into Other Releases and download what version you want with respect to your OS and 32-bit or 64-bit.
Example:
node-vX.XX.X-OS-x64.tar.gz (64-bit)
node-vX.XX.X-OS-x86.tar.gz (32-bit)
Then, follow the instruction on the github.com. Building and installing Node.js
Another way is to use NVM, the Node Version Manager (it works in a very similar way to rvm for ruby). This allows to install and manage multiple versions of node. Here's a snippet (source):
Usage:
nvm install <version> Download and install a <version>
nvm use <version> Modify PATH to use <version>
nvm ls List versions (installed versions are blue)
You can also check this n. A Simple flavour of node binary management.
Update (as per comments):
If you have installed the nvm after node.js. You can check already installed by using nvm ls which lists already installed version(s) ready to use.
amolkulkarni#ubuntu:~$ nvm ls
current: v0.10.18
You should use Node Version Manager https://github.com/creationix/nvm

Resources