nvm是nodejs的版本管理工具,用于切换nodejs版本
在windows下使用exe安装包安装,linux下则使用脚本安装
1.下载安装脚本
https://github.com/nvm-sh/nvm/blob/master/install.sh
2.运行安装脚本
czy@Mint ~/workspace/gitee/nvm $ ./install.sh
=> Downloading nvm from git to '/home/czy/.nvm'
=> 正克隆到 '/home/czy/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
remote: Total 290 (delta 35), reused 97 (delta 20), pack-reused 0
接收对象中: 100% (290/290), 163.27 KiB | 62.00 KiB/s, 完成.
处理 delta 中: 100% (35/35), 完成.
检查连接... 完成。
=> Compressing and cleaning up git repository
=> Appending nvm source string to /home/czy/.bashrc
=> Appending bash_completion source string to /home/czy/.bashrc
=> Close and reopen your terminal to start using nvm or run the fo