# Npm install error

**URL:** <https://discuss.bitrise.io/t/npm-install-error/10873>\
**Category:** Builds\
**Tags:** npm\
**Created:** [November 7, 2019, 7:01pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873 "2019-11-07T19:01:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![volser](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@volser](https://discuss.bitrise.io/u/volser)\
**Post date:** [November 7, 2019, 7:01pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873/1 "2019-11-07T19:01:22Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

I’m getting error on npm install

> npm ERR! code 128  
> npm ERR! Command failed: git clone --mirror -q [GitHub - cordova-misc/cordova-webintent: WebIntent Android Plugin for Cordova 3.X](https://github.com/cordova-misc/cordova-webintent.git) /root/.npm/\_cacache/tmp/git-clone-fdfdf265/.git  
> npm ERR! fatal: could not create leading directories of ‘/root/.npm/\_cacache/tmp/git-clone-fdfdf265/.git’

## 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 (npm install)

## 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?_ : always

Looks like it’s not working when packages.json contains package with direct git link, like:  
“cordova-support-google-services”: “git+https://github.com/LuisEGR/cordova-support-google-services.git”,

### Local reproduction

locally works fine

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

did not try

## Build log

[https://app.bitrise.io/build/c4ab6d4ffd39da06#?tab=log](https://app.bitrise.io/build/c4ab6d4ffd39da06#?tab=log)

---

<div class="post-metadata">

**Author:** ![volser](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@volser](https://discuss.bitrise.io/u/volser)\
**Post date:** [November 7, 2019, 7:08pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873/2 "2019-11-07T19:08:50Z")

</div>

this step is working on mac stack, but my next steps for ionic/android are not working on mac

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [November 8, 2019, 2:44pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873/3 "2019-11-08T14:44:19Z")

</div>

Hi there @volser!

Could you please send us the URL of the build and also enable support access ( [Enabling the Bitrise Support user for your app | Bitrise DevCenter](https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/))? 🙂

---

<div class="post-metadata">

**Author:** ![volser](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@volser](https://discuss.bitrise.io/u/volser)\
**Post date:** [November 8, 2019, 3:37pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873/4 "2019-11-08T15:37:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/e/e5b2a49bbc9bbe86528a5f1c96d62dc16a64b996.png)

🤣

---

<div class="post-metadata">

**Author:** ![volser](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@volser](https://discuss.bitrise.io/u/volser)\
**Post date:** [November 8, 2019, 3:38pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873/5 "2019-11-08T15:38:36Z")

</div>

Done

build: [https://app.bitrise.io/build/aa483e28baf8a545#?tab=log](https://app.bitrise.io/build/aa483e28baf8a545#?tab=log)

---

<div class="post-metadata">

**Author:** ![patjsoft](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@patjsoft](https://discuss.bitrise.io/u/patjsoft)\
**Post date:** [November 12, 2019, 6:47pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873/6 "2019-11-12T18:47:42Z")

</div>

We are seeing this same issue. Has a solution been found yet? Thank you!

---

<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 14, 2019, 12:47pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873/7 "2019-11-14T12:47:57Z")

</div>

Had same issue. The reason was update of npm with “npm install npm -g”, fixed when removed

---

<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:** [December 14, 2019, 12:48pm UTC](https://discuss.bitrise.io/t/npm-install-error/10873/8 "2019-12-14T12:48:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
