npm WARN: npm does not support Node.js v12.4.0

I've been getting the following warnings lately whenever I run any npm script:

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/

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

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

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).

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

Error: npm 12.4.0 already installed

For some reason Brew mixes up nodes and npms versions.

What am I doing wrong and how can I get rid of this warning?

Seems like you messed up with permissions in /usr/local.

Here is how to fix that:

  1. Fix /usr/local permissions:

    sudo chown -R `id -un`:`id -gn` /usr/local
    
  2. Clean npm cache and uninstall it:

    npm cache clean -f
    npm -g uninstall npm
    
  3. Reinstall node (with npm)

    brew reinstall node
    
  4. Upgrade npm:

    npm -g i npm
    

That should bring npm@6.9.2.

You should avoid using sudo while installing software with brew or npm, that could cause issues like this.

How to solve "npm does not support Node.js v11.3.0" warning after , Sometimes cleaning cache helps. Do a sudo npm cache clean -f before the install. Maybe you can use npm i -g npm@latest and see if it works. so i was taking an online course with codewithmosh.com and he told me to revert to an old version of npm so that his class would make sense. so i reverted to npm v 5.5.1. apparently this was so old

What worked for me:

if you try running this command "npm cache clean -f" and it doesn't work,

on your windows machine(mine is windows 10) access the "npm" and "npm-cache" folders in this location "~\AppData\Roaming\"

delete these two folders "npm" and "npm-cache".

go to your windows search bar and search for Node, right click to open file location, run the uninstaller to uninstall NodeJs.

then visit nodejs.org and download and install node again, if you've already downloaded it, visit the folder where you downloaded it to reinstall it.

after installation, check your version of npm by typing "npm -v" on your command terminal to see the new updated version of npm installed on your machine.

now you're all set, Happy coding.

npm does not support Node.js v10.15.2 � Issue #1877 � nodejs/help , info it worked if it ends with ok 1 warn npm npm does not support Node.js v10. 15.2 2 warn npm You should probably upgrade to a newer version of node as we 3� How do you ensure that you're using node's npm that contains this fix? (Asking because I tried to uninstall npm with npm uninstall -g npm and did a nvm use v13.0.1 and I'm still getting the warning message.)

After step 4 posted by Styx, and if node claims installation fo a newer version but npm -v keeps showing outdated version

Code for Mac and node installed with brew:

cd /usr/local/bin/
mv npm npm-backup
mv npx npx-backup
ln -s /usr/local/Cellar/node/14.2.0/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm 
ln -s /usr/local/Cellar/node/14.2.0/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx 
npm -version
6.14.5

"npm does not support Node.js v13.0.0" � Issue #30066 � nodejs , npm WARN npm npm does not support Node.js v13.0.0 npm WARN npm You should probably upgrade to a newer version of node as we npm� Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. deps:. upgrade npm to 6.14.7 (claudiahdz) #34468 dgram: (SEMVER-MINOR) add IPv6 scope id suffix to received udp6 dgrams (Pekka Nikander) #14500

I hit this issue and the steps above didn't work for me. I think it can happen if you try to upgrade Node or NPM without updating the other also. At least I think that's what happened to me.

I was trying to create a new Angular project and I had a very old version on my machine. I got an error to upgrade Node, so I bumped it to the latest version. After that I got the error running any npm command.

I resolved it simply by going to: https://nodejs.org/en/download/

Getting the latest version and installing that in a pkg file (mac). After install was complete I was able to run everything. I'm guessing it worked because the versions of each mismatched, so one wouldn't run without the other being downgraded.

I also tried the brew option but I was getting other issues. My corporate machine sometimes blocks installations in that route, so it might work for others.

npm version is not compatible with node.js version, Well i face the same problem today after install ubuntu 19.10. and i solve this by updating npm using below command npm install npm@latest -� Recently I ran into this problem, and I just discovered there is a compatible version in debian-backports. In my case I can use command apt install node-npm-package-arg=6.1.1-1~bpo10+1 and then apt install npm=6.14.3+ds-1~bpo10+1, after that the npm will be upgraded to a warning-free version for Node.js v10.

Looks like a permission issue. Try with sudo

npm does not support Node.js v10.15.3 - support, I got the following warning lines. npm WARN npm npm does not support Node.js v10.15.3 npm WARN npm You should probably upgrade to a� I installed the latest node.js v13. After the installation, I ran npm -g upgrade and got the following warnings; npm WARN npm npm does not support Node.js v13.0.0 npm WARN npm You should probably

Downloading and installing Node.js and npm, We do not recommend using a Node installer, since the Node installation allow you to install and switch between multiple versions of Node.js and npm on� npm WARN npm npm does not support Node.js v10.16.3. The npm -v version says 5.4.2. Not sure why npm version 6.9.0 isn't installing with the nodejs 10.16.3 installer. My solution: Reinstall older version of Node.js version I've been using (version 8.16.2)

npm does not support Node.js v10.15.2, [ npm install raspberry -g npm WARN npm npm does not support Node.js v10. 15.2 npm WARN npm You should probably upgrade to a newer� Node.js Version: 12.2.0; OS: Windows 10; Scope (install, code, runtime, meta, other?): Install/NPM/Version; Module (and version) (if relevant): NPM I've experienced this issue more than once in the past when a new version of Node, and the only advice I can find online seems to recommend manually upgrading my version of NPM.

npm does not support Node.js v10.15.2 - help, info it worked if it ends with ok 1 warn npm npm does not support Node.js v10. 15.2 EACCES: permission denied Node v12.4.0 while installing ElectronJs hot 1. Is there a way to suppress the npm WARN npm npm does not support Node.js v12.0.0-pre warning only (and allow all other warnings to be printed)? Looking quickly through docs and lib/utils/unsupported.js, it seems the answer is “no” but maybe I’m missing something? If not, would a pull request implementing such a thing be welcome or likely rejected? The use case is running the npm tests

Comments
  • try to sudo npm install -g npm@latest
  • What which npm shows?
  • @Styx /usr/local/bin/npm
  • What about npm -g ls --depth=0 and ls -la /usr/local/bin/npm?
  • Yup, that did it. Thanks! I'll be more careful with sudo using package managers though :)
  • These instructions work. However, instead of uninstalling, selecting "Repair" instead of "Uninstall" will also work.
  • I tried it, it claimed to install npm@6.9.2, but npm -v still outputs 6.4.1.