nvm安装
$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ sudo echo "source ~/.nvm/nvm.sh" >> ~/.bashrc && sudo echo "source ~/.nvm/nvm.sh" >> ~/.profile
# zsh
vim .zshrc
# 添加
-------------
# NVM
export NVM_DIR="$HOME/.nvm" # or wherever you've chosen to install it
source "$NVM_DIR/nvm.sh"
-------------
nvm常用命令
nvm ls
nvm ls-remote
nvm install <version>
nvm use <version> 临时切换版本
nvm uninstall <version>
nvm alias default <version> 设置默认版本,重新打开shell生效
linux 修改文件、文件夹用户所有者
sudo chgrp -R pi NeteaseCloudMusicApi
sudo chown -R pi NeteaseCloudMusicApi
网友评论