npm WARN: npm does not support Node.js v12.4.0 : <p>I've been getting the following warnings lately whenever I run any npm script:</p>

<pre><code>npm WARN npm npm does not support Node.js v12.4.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 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
</code></pre>

<p>It says that I should upgrade to a newer version, but v12.4 <em>is</em> the newest version. Even though the scripts run fine, I think there's no guarantee and something might break at any moment.</p>

<p>I've also tried updating <code>npm</code> in case there's a newer version using <code>npm install npm -g</code> but got the error:</p>

<pre><code>npm ERR! path /usr/local/Cellar/node/12.4.0/lib/node_modules/npm
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/Cellar/node/12.4.0/lib/node_modules/npm'
npm ERR!  [Error: EACCES: permission denied, access '/usr/local/Cellar/node/12.4.0/lib/node_modules/npm'] {
npm ERR!   stack: 'Error: EACCES: permission denied, access ' +
npm ERR!     "'/usr/local/Cellar/node/12.4.0/lib/node_modules/npm'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/Cellar/node/12.4.0/lib/node_modules/npm'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
</code></pre>

<p>Then I've seen that Homebrew version of <code>npm</code> can't be updated using npm itself, so I tried updating through <code>Homebrew</code> using <code>brew upgrade npm</code> but got this error:</p>

<p><code>Error: npm 12.4.0 already installed</code></p>

<p>For some reason Brew mixes up <code>node</code>s and <code>npm</code>s versions.</p>

<p>What am I doing wrong and how can I get rid of this warning?</p>
