use nvm

►►download nvm

    
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Note: On Linux, after running the install script, if you get nvm: command not found or see no feedback from your terminal after you type:

command -v nvm

simply close your current terminal, open a new terminal, and try verifying again.


►►nvm instruction

    nvm install <version>  #install node refer to version

    nvm uninstall <version>  # delete installed node refer to version

    nvm use <version>  #change the version 

    nvm ls  # list installed node

    nvm current  #display current version




猜你喜欢

转载自blog.csdn.net/sunrunning/article/details/80185427
nvm
今日推荐