Wednesday, 9 October 2019

Unable to install npm

I know that you might think this is a common problem but I have been on Google for past 3 hours and still no solution to this problem.I work in an organization which host code on bitbucket. They have some private node modules which are mentioned in dependencies in package-lock like this -"catalog-model": {"version": "git+ssh://git@bitbucket.org/orgteam/catalog-model.git#9b5bd79d6eadc81c0bbc4bfcd0e7ac56d8151"}This is a node module required for my current repo. There are many such modules in the file. When I do a npm install command, it throws a error like this -npm ERR! Command failed: git clone --template=/home/ajaypilania/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/orgteam/proc.git /home/ajaypilania/.npm/_git-remotes/git-ssh-git-bitbucket-org-orgteam-proc-git-e14ed76c71cd2150817489d51f3a17ea8949ac27npm ERR! Cloning into bare repository '/home/ajaypilania/.npm/_git-remotes/git-ssh-git-bitbucket-org-orgteam-proc-git-e14ed76c71cd2150817489d51f3a17ea8949ac27'...npm ERR! [git@bitbucket.org](mailto:git@bitbucket.org): Permission denied (publickey).npm ERR! fatal: Could not read from remote repository.npm WARN addRemoteGit Error: Command failed: git config --get remote.origin.urlIs there any way to solve this issue? Am I missing something here?EDIT :: I have access to all repos and it was working fine a day before but not it's not working.

Submitted October 10, 2019 at 06:59AM by GhostFoxGod

No comments:

Post a Comment