GitLab Runner运行pipline提示缺少权限Missing write access to /usr/lib/node_modules

在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

1
说点什么

Please Login to comment
avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Jason Recent comment authors
  Subscribe  
最新 最旧 得票最多
提醒