title: Unable to install node.js v8 on CentOS 7
body: <p>I tried following the instructions on <a href="https://nodesource.com/blog/installing-node-js-8-tutorial-linux-via-package-manager/" rel="nofollow noreferrer" title="nodesource">nodesource</a> by running these commands as root:</p>
  
  <pre><code>curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
  yum install -y nodejs
  </code></pre>
  
  <p>But when I run <code>node -v</code> afterward I can see that it only installed 0.10.48. I can see in the output of the second command that it's selecting the wrong version of the package for download:</p>
  
  <pre><code>Loaded plugins: fastestmirror, priorities
  Setting up Install Process
  Loading mirror speeds from cached hostfile
   * epel: mirror.steadfast.net
   * remi: repo1.sea.innoscale.net
   * remi-safe: repo1.sea.innoscale.net
  2418 packages excluded due to repository priority protections
  Resolving Dependencies
  --&gt; Running transaction check
  ---&gt; Package nodejs.x86_64 0:0.10.48-3.el6 will be installed
  --&gt; Finished Dependency Resolution
  
  Dependencies Resolved
  
  =========================================================================================================================================================================================
   Package                                    Arch                                       Version                                            Repository                                Size
  =========================================================================================================================================================================================
  Installing:
   nodejs                                     x86_64                                     0.10.48-3.el6                                      epel                                     2.1 M
  
  Transaction Summary
  =========================================================================================================================================================================================
  Install       1 Package(s)
  
  Total download size: 2.1 M
  Installed size: 7.1 M
  Downloading Packages:
  nodejs-0.10.48-3.el6.x86_64.rpm                                                                                                                                   | 2.1 MB     00:00     
  Running rpm_check_debug
  Running Transaction Test
  Transaction Test Succeeded
  Running Transaction
  Warning: RPMDB altered outside of yum.
    Installing : nodejs-0.10.48-3.el6.x86_64                                                                                                                                           1/1 
    Verifying  : nodejs-0.10.48-3.el6.x86_64                                                                                                                                           1/1 
  
  Installed:
    nodejs.x86_64 0:0.10.48-3.el6                                                                                                                                                          
  
  Complete!
  </code></pre>
  
  <p>I've tried uninstalling with <code>yum remove -y nodejs npm</code> and then running <code>rm -fv /etc/yum.repos.d/nodesource*</code>, <code>yum clean all</code>, <code>yum update</code> and then reinstalling but nothing seems to work.</p>
  
  <p>Why doesn't it resolve to the v8 package?</p>