ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Getting NodeJS on CentOS 7 with NVM

    IT Discussion
    node nodejs centos 7 linux centos fedora rhel nvm digital ocean
    2
    9
    7.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

      NVM, the Node.js Version Manager, makes installing and managing Node.js quick and easy. By default, using YUM, on CentOS you get an old version of Node.js which is frustrating. Getting newer versions and managing them is easy with NVM and does not require root credentials, each user can install for themselves and manager their own versions. Very nice.

      curl https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
      source ~/.bash_profile
      nvm list-remote
      nvm install v7.5.0
      

      This would get you the current version available today. Very quick, very easy and quite flexible. This makes Node development so much easier on CentOS. I am loving it and using this on Fedora as well.

      Thanks to Digital Ocean for getting me started on finding the best way to handle this: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-a-centos-7-server

      1 Reply Last reply Reply Quote 2
      • scottalanmillerS
        scottalanmiller
        last edited by

        Current version is v0.30.1

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          Confirmed that these instructions worked well on Ubuntu 15.04 as well.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Here are the commands to get the very latest NVM, as of today, and the latest Node 4 release...

            curl https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
            

            Restarted shell...

            nvm install v4.2.4
            

            And that is it.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              Latest version...

              curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
              
              JaredBuschJ 1 Reply Last reply Reply Quote 1
              • JaredBuschJ
                JaredBusch @scottalanmiller
                last edited by JaredBusch

                @scottalanmiller said in Getting NodeJS on CentOS 7 with NVM:

                Latest version...

                curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
                

                up to 32.1 as of October 18, 2016

                curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
                
                1 Reply Last reply Reply Quote 1
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Updated to the latest NVM and NodeJS versions.

                  JaredBuschJ 1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @scottalanmiller
                    last edited by

                    @scottalanmiller said in Getting NodeJS on CentOS 7 with NVM:

                    Updated to the latest NVM and NodeJS versions.

                    There is also the ability to check out the repo and just use get to pull the current but if I do that how do I didn't install in the same fashion that this is installed?

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @JaredBusch
                      last edited by

                      @JaredBusch said in Getting NodeJS on CentOS 7 with NVM:

                      @scottalanmiller said in Getting NodeJS on CentOS 7 with NVM:

                      Updated to the latest NVM and NodeJS versions.

                      There is also the ability to check out the repo and just use get to pull the current but if I do that how do I didn't install in the same fashion that this is installed?

                      I've not tried that either.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post