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
It turns out that the current installed npm is not compatible with the new node and has a hard time updating.
npm
node
The solution is to uninstall npm and then reinstall node which will contain the correct version of npm.
Here's how:
Uninstall npm.
Mac: sudo npm uninstall -g npm Windows: npm uninstall -g npm
Install node from https://nodejs.org
2.1m questions
2.1m answers
60 comments
57.0k users