centos 安装 git
安装版本管理工具git
yum install git
查看 git 版本
git --version
gitlab-runner 报错
Reinitialized existing Git repository in /home/gitlab-runner/builds/xxxxxx
fatal: git fetch-pack: expected shallow list
fatal: The remote end hung up unexpectedly
原因是git版本太老不持之新API,需要升级一下git
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum install git
centos安装 nvm
官方文档地址
https://github.com/nvm-sh/nvm#installing-and-updating
安装方法
方法一:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
方法二:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
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. Alternatively, you can run the following commands for the different shells on the command line:
bash: source ~/.bashrc
zsh: source ~/.zshrc
ksh: . ~/.profile
如果命令行显示nvm: command not found或者运行command -v nvm是无返回信息,则根据实际情况执行如:source ~/.bashrc
nvm 常用命令
安装最新版本 node
nvm install node
查看可安装版本
nvm ls-remote
查看已安装版本
nvm ls
安装特定版本
nvm install 16.13.0
使用特定版本
nvm use 16.13.0
centos 安装 gitlab-runner
官方文档
https://docs.gitlab.com/runner/install/
安装
添加源
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash
安装 gitlab-runner
yum install gitlab-runner
centos 安装 yarn
官方文档
https://yarn.bootcss.com/docs/install/#centos-stable
安装
添加源
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
安装
sudo yum install yarn