Installation nvm
Recent project, a project to develop a vue, is to use react development, but ant design pro using umi framework, the required node version> 10.0.0, vue that the project not compatible with the latest version of the node,
Solution: 1. use a version of the node re-uninstall, install the corresponding version
2. Use nvm
Clearly, the first method, although it can solve the problem node version, but too much trouble, the following describes the installation under the nvm
Step One: Download and install nvm (recommended nvm-setup.zip) https://github.com/coreybutler/nvm-windows/releases
Step 2: Use nvm command to switch node version
nvm // 会提示nvw下的相关命令
nvm ls // 查看已安装node版本
nvm install vXX // 安装对应vXX版本的node
nvm uninstall vXX // 卸载对应vXX版本的node nvm use xxx // 选择使用XXX版本
No configuration environment variable, pro-test success