The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot run my project pipeline correctly due to a problem with a dependency

Kevin Alejandro Hernández Rodríguez
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!
April 14, 2021

The company (SunDevs) has a repository called "kiosk-ck-app" and this repo use a dependency named "usb".
The problem is when I try to run the repo's pipeline it always fails on the dependencies installation step. Reading the log I found an error with the usb dependency and the log shows this problem

...
ERROR in ./node_modules/escpos/adapter/usb.js
Module not found: Error: Can't resolve 'usb' in '/usr/local/share/.cache/yarn/v6/.tmp/4687347722768e2d2219861121344c34.b8a068ccc68304939aa7d4f900a033a2a88a624c.prepare/node_modules/escpos/adapter'
@ ./node_modules/escpos/adapter/usb.js 28:10-24
...
prebuild-install info looking for cached prebuild @ /root/.npm/_prebuilds/8994f7-usb-v1.7.0-napi-v7.1.13-linux-x64.tar.gz
prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.7.0/usb-v1.7.0-napi-v7.1.13-linux-x64.tar.gz
prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v1.7.0/usb-v1.7.0-napi-v7.1.13-linux-x64.tar.gz
...

As you can see it does not find anything in this url brought by the pipeline cache = usb-v1.7.0-napi-v7.1.13-linux-x64.tar.gz
Because the node-usb library has a different asset published in its repo (node-usb_reseases.png)

Is it a bug from the linux instance of bitbucket pipeline? What would be the problem? I need help with this topic please

pipeline_error.pngnode-usb_releases.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Justin Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2021

@Kevin Alejandro Hernández Rodríguez Are you caching the node dependencies and can you try after disabling the cache?

TAGS
AUG Leaders

Atlassian Community Events