7

In my package.json I have private repo called somerepo.git. Now I am running an npm install on a buildserver(bamboo) through maven and getting this error:

[ERROR] npm ERR! Command failed: git clone --template=/var/home/ci/.npm/_git-remotes/_templates --mirror https://somerepo.git
[ERROR] npm ERR! fatal: Authentication failed for https://somerepo.git

How can I resolve the authentication for the repository?

bier hier
  • 20,970
  • 42
  • 97
  • 166
  • Does this answer your question? [How to use private Github repo as npm dependency](https://stackoverflow.com/questions/28728665/how-to-use-private-github-repo-as-npm-dependency) – Sachin Apr 19 '21 at 06:58

1 Answers1

3

If you can, you should:

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250