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

Downloading a bit-bucket repo through package.json

abhishek-deshmukh-extentia July 2, 2018

In my package JSON. I have a module that is hosted in bitbucket.

This is my package.json's dependancy

"test": "git+ssh://git@bitbucket.org:rhcmobile/test-facade.git".

So, when I type - npm install, this node module should be downloaded in my project. So I generated RSA keys and added RSA public key on bitbucket.

When I clone this repo in my system, this repo is getting downloaded(As expected!)

But When trying to install through "npm install" I am getting this error

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\mingw64\bin\git.EXE ls-remote -h -t ssh://git@bitbucket.org/rhcmobile/test-facade.git
npm ERR!
npm ERR! git@bitbucket.org: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

I've googled a lot with this error but the solutions didn't work for me

 

Thanks!

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events