Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Accessing logs for npm build from location /root/.npm/_logs/

I am getting problem for my bitbucket-pipeline for React application. On local docker image with same versions 



npm ERR! errno 1

npm ERR! ke-web-portal@0.1.0 build: `react-scripts build`

npm ERR! Exit status 1

npm ERR! npm ERR! Failed at the ke-web-portal@0.1.0 build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:npm ERR! /root/.npm/_logs/2019-01-21T11_04_20_900Z-debug.log[ERROR] Command execution Process exited with an error: 1 (Exit value


To find out the exact reason I need to access generated for failure at /root/.npm/_logs

 Is there anyway to access these logs?


2 answers

I found them on Windows under C:\Users\[username]\AppData\Roaming\npm-cache\_logs

0 votes

Hi Rabia,

You can try use an after-script to print out the contents of these logs.

    - step:
        name: Build and test
          - # Your npm commands
after-script: - cat /root/.npm_logs/*



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,249 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you