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!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.