[英]ng: Permission denied pipeline cicd gitlab
I have a.yml file that contains my pipeline cicd of gitlab but when execute the build job, show me this message is a angular application ng: Permission denied我有一个 .yml 文件,其中包含 gitlab 的管道 cicd 但是在执行构建作业时,显示此消息是 angular 应用程序 ng: Permission denied
image: node:latest
before_script:
- npm install
this is my job这是我的工作
build-npm-prod:
stage: build
script:
- rm ./package-lock.json
- npm run build --prod
artifacts:
paths:
- dist/mi-web-texo/
only:
- master
Yesterday this worked昨天这工作
Check first if;首先检查是否; as in this instance , it is because your repository has, between yesterday and today, versioned the
node_modules
folder.在这种情况下,这是因为您的存储库在昨天和今天之间对
node_modules
文件夹进行了版本控制。
Removing that folder from the repository, adding and pushing, should allow your GitLab pipeline to run, and ng
to operate without permission issue.从存储库中删除该文件夹,添加和推送,应该允许您的 GitLab 管道运行,并且
ng
在没有权限问题的情况下运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.