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

npm install fails on bitbucket pipeline (but okay locally)

Dev AnIsland
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!
November 12, 2017

The message I get is:
npm installnpm ERR! Cannot read property '0' of undefinednpm ERR! A complete log of this run can be found in:npm ERR! /root/.npm/_logs/2017-11-13T02_52_59_957Z-debug.log

 

1. Would anyone know the cause?
I deleted node_modules locally and ran npm install and it worked. But it doesn't seem to work on Bitbucket pipeline. I have not installed any new dependencies recently.

2. Also, how do I get hold of the logs file?

 

Thanks!

1 answer

1 vote
creasys-gbuenrostro
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 23, 2019

I have the same question. How do I get to see what's on /root/.npm/_logs

Per Aronsson
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!
November 3, 2022

Did you ever find out?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events