Linux 平台中如何安装 nvm、git 等

2024-09-27 14:00:20

nvm 安装

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

目录

相关推荐
nvm安装node,报Get "https://nodejs.org/dist/latest/SHASUMS256.txt" dial tcp 104.20.23.46:443i/o timeoutnpm install时,下载失败,报:network request to https://registry.nlark.com/yallist/download/yallist-2.1.2.tgz?brew 如何安装 nginxnode-schedule 设置定时任务