I need to use the following versions for my script to properly continue working.
npm -v 5.8.0
node -v v9.10.1
nodejs -v v4.2.6
I have npm and node correct but I cannot get nodejs to use v4.2.6
nodejs -v v9.11.2
I need to use the following versions for my script to properly continue working.
npm -v 5.8.0
node -v v9.10.1
nodejs -v v4.2.6
I have npm and node correct but I cannot get nodejs to use v4.2.6
nodejs -v v9.11.2
Use below commands:
sudo n list => show the list of installed versions sudo n stable => install latest stable version.
sudo n stable => install latest stable version
or sudo n (ex: sudo n 12.18.3) to install the specific version of nodejs
Additionally, you can also use nvm (especially in case of windows os, because above commands works on linux) to install or switch between node versions.