【发布时间】:2021-06-18 00:08:12
【问题描述】:
在尝试运行 sudo npm install -g aws-amplify/cli 时,
我收到错误The authenticity of host 'github.com (192.30.255.112)' can't be established
阅读The authenticity of host 'github.com (192.30.252.128)' can't be established 后,我运行了 ssh -T git@github.com 并获得了 Permission denied (publickey)。错误。 现在,如果我再次运行 aws-amplify 安装,我会得到:
npm ERR! code 128
npm ERR! command failed
npm ERR! command git ls-remote ssh://git@github.com/aws-amplify/cli.git
npm ERR! git@github.com: Permission denied (publickey).
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! A complete log of this run can be found in:
npm ERR! /Users/matthewmathias/.npm/_logs/2021-03-20T23_41_46_515Z-debug.log
帮助?
M
【问题讨论】:
标签: github ssh aws-amplify