Various methods have been tried on the Internet, but they haven’t been solved. Finally, the latest version of nodejs is installed manually and normal (you can directly overwrite and install it to the original path)
Attached information:
gnvm is a simple node.js multi version manager under windows, similar to NVM nvmw nodist
https://github.com/Kenshin/gnvm
NPM replace with a different version
#npm install -g npm@version
npm install -g [email protected]
Nodejs comes with NPM