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?
I found them on Windows under C:\Users\[username]\AppData\Roaming\npm-cache\_logs
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.