the versions of npm and node are not compatible. Uninstall npm, and reinstall node
npm uninstall -g npm
just upgrade npm. There is no need to uninstall
the first sentence of the error log is not written:
npm doesn't support Node.js v10.1.0
npm -g install npm
wonder how you upgraded node.js. Why npm doesn't have Synchronize upgrade after upgrade.