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
What worked for me - On Ubuntu
Install nodejs
sudo apt install nodejs
Install npm
curl -L https://www.npmjs.com/install.sh | sudo sh
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 cache
if you just upgrade, but I had already done that before finding the new release)
NPMJS Release notes
I saw this warning after I upgraded to Node 10.4.1 after that I just ran npm uninstall -g npm with -g flag to remove it globally and the error was gone. I guess it updated my npm to version 6.1.0
The easiest way(for windows) is to use the installer to remove node, then use it to reinstall node, at which time it will install the correct version of npm. running the above uninstall commands does not work, since the wrong version of node is installed, otherwise you wouldn't have this issue.
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.
If you are unable to uninstall npm
, instead you can skip that step and just