title: Node JS - Not able to install node js version 8.9 or greater in ubuntu 16.04
body: <p>I have tried various methods by which I can install the latest version of nodejs on my operating system but was unsuccessful. </p>
  
  <p>In the end it always ends up installing 
  <strong>version v.4.2.6</strong></p>
  
  <p>When I run the commands below, it always shows an error as shared in the screenshots of my terminal.<br>
  <strong>Current release:<br></strong>
  sudo apt-get install curl python-software-properties
  curl -sL <a href="https://deb.nodesource.com/setup_11.x" rel="nofollow noreferrer">https://deb.nodesource.com/setup_11.x</a> | sudo -E bash -</p>
  
  <p><strong>or LTS release:</strong><br>
  sudo apt-get install curl python-software-properties
  curl -sL <a href="https://deb.nodesource.com/setup_10.x" rel="nofollow noreferrer">https://deb.nodesource.com/setup_10.x</a> | sudo -E bash -</p>
  
  <p>// throws error
  Version:<br>
  <a href="https://i.stack.imgur.com/3BBSD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3BBSD.png" alt="enter image description here"></a></p>
  
  <p><br>Trying to execute node 11 script:<br>
  <a href="https://i.stack.imgur.com/AsRcn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AsRcn.png" alt="enter image description here"></a></p>
  
  <p><br>o/p of the above script: <br>
  <a href="https://i.stack.imgur.com/uokiJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uokiJ.png" alt="enter image description here"></a></p>
  
  <p>Please guide me how can it be fixed. I have followed some of the other stackoverflow links but couldn't make it.</p>
  
  <p>Thanks you for your help.</p>