Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can't run npm install of private repository

eSawfly 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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