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

Issue pulling private bitbucket repository dependency declared in package.json

Amicus Code Repositories November 13, 2018

0down votefavorite

I am trying to pull my dependency by running npm install. I have my dependency declared in my package.json file like below:

"dependencies": { "mymodule": "git+https://x-token-auth:{access-token}@bitbucket.org/team/reponame.git" } I generated the oauth token using this

When I run npm install I get the error: error git: 'remote-git+https' is not a git command. See 'git --help'

Any help would be appreciated.

When I do git clone like below, it clones the repo successfully. However when I declare the dependency in package.json and do npm install it fails.

git clone https://x-token-auth:{access-token}@bitbucket.org/team/reponame.git

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events