Linux 平台中如何安装 nvm、git 等
2024-09-27 14:00:20nvm 安装
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
安装后,退出终端,重新打开即可。
git 安装
yum install git-core
有可能安装失败,返回以下提示:
Loaded plugins: fastestmirror, langpacks
You need to be root to perform this command.
提示你需要获取 root 权限,之后再执行 yum install git-core
命令
如何获取 root 权限?在终端上直接执行 su 命令,并回车,输入密码即可:
su