How to install specific Node JS version on Ubuntu ?

To install specific version of Node JS, first make sure NPM package manager is installed.

 $ sudo apt-get install npm o 
 $ sudo npm install n -g 

You can check what is your current Node JS version using below command,

 $ node -v 

Also check which all node versions are supported by using below command,

 $ n ls 

Changing to specific node version as you want.

Now, lets say if you have seen latest node version is 9.4.0 and want to install “6.8.1” version, which is actually a downgrading of Node JS version then you can use below command and pass the version number to “n” command as,

 $ sudo n 6.8.1 

Now, you can see version 6.8.1 is installed,

 $ node -v 

lynxbee_ezoic

Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )

   


1 thought on “How to install specific Node JS version on Ubuntu ?”

Leave a Comment

Android Android Applications Android Build system Android Commands Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded