npm WARN npm npm does not support Node.js v9.1.0

I updated to the latest node v9.1.0 and now npm doesn't work.

npm WARN npm npm does not support Node.js v9.1.0


Solution 1:

It turns out that the current installed npm is not compatible with the new node and has a hard time updating.

The solution is to uninstall npm and then reinstall node which will contain the correct version of npm.

Here's how:

  1. Uninstall npm.

    Mac:
    sudo npm uninstall -g npm
    
    Windows:
    npm uninstall -g npm
    
  2. Install node from https://nodejs.org

Solution 2:

Uninstall the global instance of npm:

npm uninstall -g npm

This will cause your system to fall back on the version of npm installed by node 9.1.0 and the warning will disappear.

Solution 3:

Fixed my issue update to 5.71

npm uninstall -g npm

npm i -g npm@next

Solution 4:

What worked for me was to delete npm and npm cache from C:\Users\chrisd\AppData\Roaming

Then I ran npm i -g npm@next for the latest version of npm for Node 9.x

NPMJS.org has issued a new release 11.27.2017 -- npm v5.6.0

(You may not have to delete the npm/npm cacheif you just upgrade, but I had already done that before finding the new release)

NPMJS Release notes

Solution 5:

Had similar issue in linux/ubuntu, below helped solving it.

  1. Remove existing versions of npm and node:

    sudo apt --auto-remove purge npm
    sudo apt --auto-remove purge nodejs
    
  2. Re-install node