Can’t Read From Remote Git Repository During npm install

Cloning Repositories

You may encounter this error when installing npm. 

npm ERR! git clone ssh://git@github.com/someuser/somerepo.git Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/ssh-git-github-com-creativelive-shared-git-01234abc'...
npm ERR! git clone ssh://git@github.com/someuser/somerepo.git
npm ERR! git clone ssh://git@github.com/someuser/somerepo.git ERROR: Repository not found.
npm ERR! git clone ssh://git@github.com/someuser/somerepo.git fatal: Could not read from remote repository.
npm ERR! git clone ssh://git@github.com/someuser/somerepo.git
npm ERR! git clone ssh://git@github.com/someuser/somerepo.git Please make sure you have the correct access rights
npm ERR! git clone ssh://git@github.com/someuser/somerepo.git and the repository exists.
npm ERR! Error: Command failed: ERROR: Repository not found.
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!     at ChildProcess.exithandler (child_process.js:540:15)
npm ERR!     at ChildProcess.EventEmitter.emit (events.js:96:17)
npm ERR!     at maybeClose (child_process.js:638:16)
npm ERR!     at Process._handle.onexit (child_process.js:680:5)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

This happens when you list a git repository as a dependency in your package.json file.

"<somepackage>": "git://github.com/someorg/somerepo.git"

If the repository is public, swap the URL to an HTTP URL:

"<somepackage>": "https://github.com/someorg/somerepo"

If the repository is private, add an additional SSH key in Project settings > SSH Keys > Additional SSH Keys. See this document for more information.

Was this article helpful?
6 out of 42 found this helpful

Comments

0 comments

Article is closed for comments.