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 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 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
AUG Leaders

Atlassian Community Events