• Welcome to LiuJason's Blog!

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

Linux笔记 Jason 6 years ago (2019-05-21) 1228 Views 1 Comments QR code of this page

在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

This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/280.html
Like (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(1)个小伙伴在吐槽
  1. Jason
    sudo yum install epel-release -ysudo yum install nodejs
    Jason2019-05-21 18:41 Reply Windows 10 | Chrome 74.0.3729.157