Forums

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

Can't run npm install of private repository

eSawfly
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!
May 30, 2017

Hi. package.json includs package from private repository.
I have permission "write" to this repository. I get errors:

fatal: Authentication failed for 'https://bitbucket.org/<owner>/<repository>.git/'

for 

npm install git+https://bitbucket.org/<owner>/<repository>.git

fatal: Authentication failed for 'https://eSawfly@bitbucket.org/<owner>/<repository>.git/'

for 

npm install git+https://eSawfly@bitbucket.org/<owner>/<repository>.git

fatal: Authentication failed for 'https://eSawfly:<password>@bitbucket.org/<owner>/<repository>.git/'

for 

npm install git+https://eSawfly:<password>@bitbucket.org/<owner>/<repository>.git

I'll be glad to any help. thx

1 answer

0 votes
Hakeem Olasupo
Community Champion
November 19, 2021

 

In your private npm modules add

 

"private": true 

to your package.json

 

Then to reference the private module in another module, use this in your package.json

 

{

    "name": "myapp",

    "dependencies": {

        "private-repo": "git+ssh://git@github.com:myaccount/myprivate.git#v1.0.0",

    }

}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events