Why I use NPM to install something, it will have this problem as below
ERROR: npm is known not to run on Node.js v9.2.1 Node.js 9 is supported but the specific version you're running has a bug known to break npm. Please update to at least 9.0.0 to use this version of npm. You can find the latest release of Node.js at https://nodejs.org/
Then I find some solutions at Stack Overflow.
Almost every answer suggest to use npm uninstall -g npm
first. But when I use this command, it will have the same error as above.
My npm version is 6.13.7
My node version is 9.2.