-1

Getting a warning that

npm does not support Node.js v10.16.0.

However my version of npm is 6.9.0 which is the version that is tied to 10.16.0.

I've tried all the suggestions here on such as sudo npm uninstall -g npm but still getting the same error as the version that is reinstalled is 6.9.0

A full remove and install just gets me back to the original issue. Please stop suggesting brew uninstall node

Even a complete uninstall outlined below did not do the trick for longer than a day. I guess I'll just have to live with the issue. There does not seem to be a fix.

s.Lawrenz
  • 302
  • 3
  • 17
  • Possible duplicate of [How can I update NodeJS and NPM to the next versions?](https://stackoverflow.com/questions/6237295/how-can-i-update-nodejs-and-npm-to-the-next-versions) – Peter Aug 20 '19 at 14:30
  • Possible duplicate of [npm WARN npm npm does not support Node.js v9.1.0](https://stackoverflow.com/questions/47226238/npm-warn-npm-npm-does-not-support-node-js-v9-1-0) – Charlie Aug 20 '19 at 14:39
  • As I stated above the duplicates listed do not solve the issue. – s.Lawrenz Aug 20 '19 at 15:02

1 Answers1

0

The best solution in your case is to uninstall both node and npm fully, and then reinstall the node which will bring the matching npm version. Using Node Version Manager can simply node and npm version management a lot.

Manually uninstall:

sudo apt-get remove nodejs

sudo apt-get remove npm

Then go to /etc/apt/sources.list.d and remove any node list if you have. Then do a

sudo apt-get update

This answer describes it all.

Charlie
  • 22,886
  • 11
  • 59
  • 90