title: How to fix 'npm does not support Node.js v11.14.0 error' on Windows?
body: <p>I am configuring my react-native environment. I am attempting to run the react-native command line as described in Facebook's Github documentation <a href="https://facebook.github.io/react-native/docs/getting-started" rel="nofollow noreferrer">here</a></p>
  
  <p>I have installed the latest version of node.js when I type <code>C:\WINDOWS\system32&gt;node -v</code> <code>v11.14.</code> is returned.</p>
  
  <p>The npm downloaded was included with the latest version of node.js. However it is only 5.5.1. When I input <code>C:\WINDOWS\system32&gt;npm -v</code> the result is <code>5.5.1</code></p>
  
  <ul>
  <li>I've tried to uninstall and reinstall </li>
  <li>I've tried to download the LTS version of node.js</li>
  <li>I've tried to upgrade both node.js and npm</li>
  <li>This is for Windows 10</li>
  <li>This is running from the administrative command prompt and administrative power shell</li>
  </ul>
  
  <p>This is the code </p>
  
  <pre><code>C:\WINDOWS\system32&gt;npm install -g react-native-cli
  npm WARN npm npm does not support Node.js v10.15.3
  npm WARN npm You should probably upgrade to a newer version of node as we
  npm WARN npm can't make any promises that npm will work with this version.
  npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
  npm WARN npm You can find the latest version at https://nodejs.org/
  npm ERR! Cannot read property 'startsWith' of null
  
  npm ERR! A complete log of this run can be found in:
  
  </code></pre>
  
  <p>When I attempt to clean the cache with <code>npm cache clean -f</code> this is the result</p>
  
  <pre><code>C:\WINDOWS\system32&gt;npm cache clean -f
  npm WARN npm npm does not support Node.js v10.15.3
  npm WARN npm You should probably upgrade to a newer version of node as we
  npm WARN npm can't make any promises that npm will work with this version.
  npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
  npm WARN npm You can find the latest version at https://nodejs.org/
  npm WARN using --force I sure hope you know what you are doing.
  
  </code></pre>
  
  <p><strong>Edits</strong>
  <em>The following code is a result of some of the proposed solutions</em></p>
  
  <pre><code>C:\WINDOWS\system32&gt;npm install -g npm
  npm WARN npm npm does not support Node.js v11.14.0
  npm WARN npm You should probably upgrade to a newer version of node as we
  npm WARN npm can't make any promises that npm will work with this version.
  npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
  npm WARN npm You can find the latest version at https://nodejs.org/
  npm ERR! Cannot read property 'startsWith' of null
  
  npm ERR! A complete log of this run can be found in:
  </code></pre>
  
  <pre><code>C:\WINDOWS\system32&gt;npm install -g npm-windows-upgrade
  npm WARN npm npm does not support Node.js v11.14.0
  npm WARN npm You should probably upgrade to a newer version of node as we
  npm WARN npm can't make any promises that npm will work with this version.
  npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
  npm WARN npm You can find the latest version at https://nodejs.org/
  npm ERR! Cannot read property 'startsWith' of null
  
  npm ERR! A complete log of this run can be found in:
  </code></pre>
  
  <pre><code>C:\WINDOWS\system32&gt;npm install -g npm-windows-upgrade
  npm WARN npm npm does not support Node.js v11.14.0
  npm WARN npm You should probably upgrade to a newer version of node as we
  npm WARN npm can't make any promises that npm will work with this version.
  npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
  npm WARN npm You can find the latest version at https://nodejs.org/
  npm ERR! Cannot read property 'startsWith' of null
  
  npm ERR! A complete log of this run can be found in:
  </code></pre>
  
  <p>I expect to open the npm command line interface. I am receiving errors when I attempt to call the interface.</p>