How to fix error on npm install from git private repo
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
...
-
~/.ssh
に行ってssh-keygen
- github で公開鍵を登録
-
~/.ssh/config
に以下を記載
Host github
HostName github.com
IdentityFile ~/.ssh/id_rsa
User git
.4. ssh -T [email protected]
Hi <YOUR_NAME>! You've successfully authenticated, but GitHub does not provide shell access.
と表示されたらOK(多分)
Author And Source
この問題について(How to fix error on npm install from git private repo), 我々は、より多くの情報をここで見つけました https://qiita.com/pikohideaki/items/32d9ce01b5c56f33b6a0著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .