【问题标题】:Error: EPERM: operation not permitted in Bitbucket pipeline错误:EPERM:Bitbucket 管道中不允许操作
【发布时间】:2020-07-06 01:49:23
【问题描述】:

在构建 ng build 时,我在 Bitbucket 中收到此错误。我使用 Firebase 作为我的后端。我做错了什么?

EPERM:不允许操作,lchown '/opt/atlassian/pipelines/agent/build/node_modules/.cache/angular-build-dl/tmp' 错误:EPERM:不允许操作,lchown '/opt/atlassian/管道/代理/构建/node_modules/.cache/angular-build-dl/tmp'

this is my Build Error in Bitbucket Image 这是我的管道

'''
 - npm i @types/jquery
      - ng build
      - npm install -g firebase-tools
      - firebase deploy --only hosting --token=$FIREBASE_TOKEN --project <projrct name> --non-interactive -m "deploying the development version" 

'''

【问题讨论】:

    标签: angular angular-cli bitbucket-pipelines ng-build angular-cli-v8


    【解决方案1】:

    更改 yaml 文件以给 root 用户评估 像这样的。

    image:
      name: imageName
      run-as-user: 0
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-28
      • 1970-01-01
      • 1970-01-01
      • 2021-01-14
      • 2021-11-18
      • 2012-06-11
      • 2017-04-28
      • 1970-01-01
      相关资源
      最近更新 更多