Error: EPERM: operation not permitted in Bitbucket pipeline

710 views Asked by At

While building ng build I am getting this error in Bitbucket. I am using Firebase as my backend. What am I doing wrong?

EPERM: operation not permitted, lchown '/opt/atlassian/pipelines/agent/build/node_modules/.cache/angular-build-dl/tmp' Error: EPERM: operation not permitted, lchown '/opt/atlassian/pipelines/agent/build/node_modules/.cache/angular-build-dl/tmp'

this is my Build Error in Bitbucket Image This is my pipeline

'''
 - 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" 

'''
1

There are 1 answers

0
Fenas S On BEST ANSWER

change the yaml file to give root user assess something like this.

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