Skip to main content

Install a node & npm specific versions using nvm (Node Version Manager)

Hi buddies,

When i tried to install a node & npm in my system, i will be facing some problem with the version. I want to install a recent LTS (Long Term Support)

Don't Do (If you want to install a specific version):
 I don't know, how its gonna installed, but its not a recent Node LTS version

  1. sudo apt-get install nodejs-legacy
  2. sudo apt-get install npm
Do (Using a NVM- Node Version Manager to install a specific version):

    1. Use the following command to install a NVM into your system
      $ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
    2. Reload the system environment using this command
      $ source ~/.profile
      $ source ~/.bashrc
    3. List all the nodejs version using this command
      $ nvm ls-remote
    4. Install a nodejs version, what ever you want (If you want to install multiple node version you can install using this command)
      $ nvm install 6.11.1
      $ nvm install 8.2.1
    5. List a node version using this command (This command will list all the node versions, you have installed in your system, and also you can able to make one version to be at a time )
      $ nvm list
    6. Using this command to make one npm version to active
      $ nvm use 6.11.1
    7. Now you can check the version (It will get intalled in your system)
      $ node –version
    Follow this steps and enjoy...

      Comments

      1. This comment has been removed by the author.

        ReplyDelete
      2. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

        Java Training in Pune

        ReplyDelete
      3. Were a gaggle of volunteers as well as starting off a brand new gumption within a community. Your blog furnished us precious details to be effective on. You've got completed any amazing work!

        Data Science course in rajaji nagar | Data Science with Python course in chenni
        Data Science course in electronic city | Data Science course in USA
        Data science course in pune | Data science course in kalyan nagar

        ReplyDelete
      4. Resources like the one you mentioned here will be very useful to me ! I will post a link to this page on my blog. I am sure my visitors will find that very useful
        online Python certification course | python training in OMR | python training course in chennai

        ReplyDelete
      5. I have visited this blog first time and i got a lot of informative data from here which is quiet helpful for me indeed. 
        java training in omr | oracle training in chennai

        java training in annanagar | java training in chennai

        ReplyDelete
      6. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's. sgare more
        Ai & Artificial Intelligence Course in Chennai
        PHP Training in Chennai
        Ethical Hacking Course in Chennai Blue Prism Training in Chennai
        UiPath Training in Chennai

        ReplyDelete
      7. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information.
        thanks a ot guys
        Ai & Artificial Intelligence Course in Chennai
        PHP Training in Chennai
        Ethical Hacking Course in Chennai Blue Prism Training in Chennai
        UiPath Training in Chennai

        ReplyDelete

      Post a Comment

      Popular posts from this blog

      The requested URL /phpmyadmin was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80

      Hi dudes, I'm getting Not Found error, when i hit a  http://localhost/phpmyadmin/ url, but i my system php, mysql & apache2 is already installed still i'm getting this error When i do this following step, the error get fixed. Do the following steps & EnjoyπŸ˜ƒπŸ˜„πŸ˜…πŸ˜„πŸ˜„πŸ˜ƒ You need to configure your apache2.conf to make phpMyAdmin work. For more detail Please read  this section  in Ubuntu wiki. open a termianl and run gksu gedit /etc/apache2/apache2.conf Then add the following line to the end of the file. Include /etc/phpmyadmin/apache.conf Then restart apache /etc/init.d/apache2 restart

      PHP 7 with Laravel 5.3 installation problem ( Your requirements could not be resolved to an installable set of packages )

      I'm Facing this problem, while installation using laravel 5.3 with PHP 7 Your requirements could not be resolved to an installable set of packages.   Problem 1     - phpunit/phpunit 5.5.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.     - phpunit/phpunit 5.5.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.     - phpunit/phpunit 5.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.     - phpunit/phpunit 5.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.     - phpunit/phpunit 5.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.     - phpunit/phpunit 5.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.     - phpunit/phpunit 5.4.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.     - phpunit/phpunit 5.4.7 requir