在nodejs安装之前先设置权限:
npm config set user 0
npm config set unsafe-perm true
npm install
顺便写一下GitLab Runner在CentOS7中的安装方法:
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
sudo yum install gitlab-runner
gitlab-runner register