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:
-
Uninstall
npm.Mac: sudo npm uninstall -g npm Windows: npm uninstall -g npm -
Install
nodefrom https://nodejs.org