On the three major platforms, you can use n or nvm to upgrade node. But many times, it will be unsatisfactory. At this time, you can use mirror. Of course, based on my previous experience, downloading directly would be an additional option if the command line does not work well. For details, please refer to: NodeJs upgrade/installation notes.
It is recommended to install n first, and then use n to upgrade node to the latest stable version
$ npm install -g n
$ npm install -g n
$ n stable
$ n stable
🎜On the three major platforms, you can use n or nvm to upgrade node.
But many times, it will be unsatisfactory. At this time, you can use mirror.
Of course, based on my previous experience, downloading directly would be an additional option if the command line does not work well.
For details, please refer to: NodeJs upgrade/installation notes.
You can use n or nvm. Both can manage node versions, and the specific usage methods can be found by searching.