由于身份验证,Firebase函数安装失败



我一直在尝试npm安装firebase函数。我以前做过很多次,这是我第一次遇到这个问题。错误如下:

PS C:UsersjacobDesktopsultvueweb> npm install firebase firebase/functions       
npm ERR! Error while executing:
npm ERR! C:Program FilesGitcmdgit.EXE ls-remote -h -t ssh://git@github.com/firebase/functions.git     
npm ERR!
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
npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersjacobAppDataRoamingnpm-cache_logs2020-04-28T22_58_26_800Z-debug.log

我似乎不知道我需要在哪里更新我的证书才能完成这项工作。谢谢你的帮助。

我的问题是我的文本编辑器中没有提升的命令提示符。我在管理员提示下尝试了一下,并立即开始工作。不知道它为什么会犯这样的错误。

最新更新