0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

How to fix error on npm install from git private repo

Last updated at Posted at 2019-08-09

gitのprivate repoからnpm installしようとして以下のエラーが出たときの解決法メモ

...
npm ERR! Host key verification failed.
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
...
  1. ~/.ssh に行って ssh-keygen
  2. github で公開鍵を登録
  3. ~/.ssh/configに以下を記載
Host github
  HostName github.com
  IdentityFile ~/.ssh/id_rsa
  User git

.4. ssh -T git@github.com

Hi <YOUR_NAME>! You've successfully authenticated, but GitHub does not provide shell access.

と表示されたらOK(多分)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?