# NPM step fails on fetching dependency from PRIVATE git repo via SSH

**URL:** <https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934>\
**Category:** Builds\
**Tags:** gitlab, npm\
**Created:** [November 12, 2019, 1:53pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934 "2019-11-12T13:53:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![valichek](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@valichek](https://discuss.bitrise.io/u/valichek)\
**Post date:** [November 12, 2019, 1:53pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/1 "2019-11-12T13:53:03Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

NPM step started to fail on fetching dependency from PRIVATE git repo via SSH

```
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git@gitlab.srv. ***:***.git
npm ERR! No user exists for uid 1000
npm ERR! fatal: Could not read from remote repository.
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! exited with error code: 128

```

## Environment:

**Where did the issue happen?**

Android & Docker, on Ubuntu 16.04

**Which build Step causes the issue and which version of the step?**

Run npm command v1.1.0, Do anything with Script step v1.1.5

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : NO
- _Does the issue happen sporadically, or every time?_ : every time
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : ~ last month

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what [bitrise.io](http://bitrise.io) will get when it does a git clone in the clean environment! If possible please note which sections you tried._

Testing with a full clean git clone: NOT REPRODUCED  
Test with the Bitrise CLI: NOT REPRODUCED

### Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [Bitrise CLI](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [Running your build locally in Docker](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._

## Build log

_Please copy paste the build’s [bitrise.io](http://bitrise.io) URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - [Contact us](https://www.bitrise.io/contact) ), with a link to the related Discuss issue._

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [December 12, 2019, 12:18pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/2 "2019-12-12T12:18:06Z")

</div>

Hi there! 👋

I’m really sorry about the delay in getting to your issue. We are currently migrating to a new system in order to be able to assist you better in the future.

Due to the considerable delay please let us know if your issue still requires investigation; please send us a short message confirming this, send us a more recent build URL and allow Support Access.

Again, apologies for the delay, going forward we’ll do our best to offer quicker replies. Thanks!

---

<div class="post-metadata">

**Author:** ![valichek](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@valichek](https://discuss.bitrise.io/u/valichek)\
**Post date:** [December 12, 2019, 3:02pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/3 "2019-12-12T15:02:37Z")

</div>

Issue still exists. Here is the link to the latest build [https://app.bitrise.io/build/3a3f6d546981b6ae#?tab=log](https://app.bitrise.io/build/3a3f6d546981b6ae#?tab=log). Support Access enabled. Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [January 11, 2020, 3:02pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/4 "2020-01-11T15:02:41Z")

</div>

Closed by accident.

---

<div class="post-metadata">

**Author:** ![non-binary](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/non-binary/32/2764_2.png) [@non-binary](https://discuss.bitrise.io/u/non-binary)\
**Post date:** [January 24, 2020, 5:24pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/5 "2020-01-24T17:24:29Z")

</div>



---

<div class="post-metadata">

**Author:** ![non-binary](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/non-binary/32/2764_2.png) [@non-binary](https://discuss.bitrise.io/u/non-binary)\
**Post date:** [January 24, 2020, 5:26pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/6 "2020-01-24T17:26:10Z")

</div>

Hi @valichek,

Thank you for your patience. I will be looking into this shortly.

Please let us know if you have already resolved the issue.

Thanks,  
Luna

---

<div class="post-metadata">

**Author:** ![valichek](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@valichek](https://discuss.bitrise.io/u/valichek)\
**Post date:** [January 26, 2020, 8:39am UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/7 "2020-01-26T08:39:06Z")

</div>

No, issue not resolved

---

<div class="post-metadata">

**Author:** ![non-binary](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/non-binary/32/2764_2.png) [@non-binary](https://discuss.bitrise.io/u/non-binary)\
**Post date:** [February 3, 2020, 7:12pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/8 "2020-02-03T19:12:23Z")

</div>

Hi @valichek,

I’m sorry for the delay in getting back to you.

To ensure that we’re looking at the latest information, can you send us a new link to a more recent build that reproduces this error? From there you’re at the front of my queue and I will continue debugging from there.

Thanks in advance.

Luna

---

<div class="post-metadata">

**Author:** ![valichek](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@valichek](https://discuss.bitrise.io/u/valichek)\
**Post date:** [February 4, 2020, 6:04am UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/9 "2020-02-04T06:04:00Z")

</div>

@non-binary [https://app.bitrise.io/build/6a869811175bbff5#?tab=log](https://app.bitrise.io/build/6a869811175bbff5#?tab=log)

---

<div class="post-metadata">

**Author:** ![valichek](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@valichek](https://discuss.bitrise.io/u/valichek)\
**Post date:** [March 3, 2020, 7:17am UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/10 "2020-03-03T07:17:12Z")

</div>

We have stopped using Bitrise since got no support, just messages from robot. No help from you required anymore.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [March 3, 2020, 9:14am UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/11 "2020-03-03T09:14:18Z")

</div>

Hi @valichek,

Really sorry we mistreated your issue report. Due to a lot of changes in our system and team we didn’t attend to it properly. In case you’re ever around to tackle this issue again feel free to raise it up with is directly please.

---

<div class="post-metadata">

**Author:** ![non-binary](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/non-binary/32/2764_2.png) [@non-binary](https://discuss.bitrise.io/u/non-binary)\
**Post date:** [March 16, 2020, 7:53pm UTC](https://discuss.bitrise.io/t/npm-step-fails-on-fetching-dependency-from-private-git-repo-via-ssh/10934/12 "2020-03-16T19:53:29Z")

</div>


