Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Rabia Akhlaq
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 26, 2019

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

 

npm ERR! code ELIFECYCLE

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 failed.org.apache.commons.exec.ExecuteException: 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

0 votes
Christopher Duncan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 30, 2021

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

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 31, 2019

Hi Rabia,

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

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

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Bitbucket Events