node.js upgrade to the latest version
- Go to the node.js official website https://nodejs.org/en/ and download the latest version of node;
- View the current node version:
- Install the downloaded new version of node to the previous node version directory; check it through node -v, the version is modified;
Manage node version-nvmw
nvmw is a node version management tool for windows, nvm is a node version management tool in mac
View the installation location of nvmw
Use
1.nmvw -h Use help
2.nmvw -V version
3. There is a problem with nvmw install v8.0.0
4. Under normal circumstances:
nvmw install v8.0.0(v+version number) can install the corresponding version of node
nvmw use v12.16.3 can switch to the corresponding version of node;
Reference file:
https://blog.csdn.net/huangdengji/article/details/84914753