赞
踩
npm ERR! code 128 npm ERR! A git connection error occurred npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git npm ERR! ssh: connect to host github.com port 22: Connection timed out 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 i 时报错
真的无语了 各种百度搜索 终于总结以下步骤
```
包证github 能ping通,
如果ping不通
打开 目录 C:\Windows\System32\drivers\etc 中的 hosts文件
加 140.82.113.3 github.com 如图
再ping一次
这一步是检查本机电脑能否访问github 如果不行 就要使用梯子
.ssh
目录下的文件:
ls -la ~/.ssh |
id_rsa
和id_rsa.pub
的文件,这些是SSH密钥对。.pub
结尾)。ssh -T git@github.com |
your_username
是你的GitHub用户名)。Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。