首页 > 解决方案 > NPM 安装 (@react-navigation/bottom-tabs) 上的“无法从远程存储库读取”

问题描述

我正在尝试安装反应导航底部选项卡包,

npm install @react-navigation/bottom-tabs

但我收到此错误:

npm ERR! command failed
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/react-navigation/bottom-tabs.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/********/.npm/_logs/2021-06-13T15_04_43_298Z-debug.log

我查看了这篇文章,但无法解决我的问题。这个错误到底是什么意思?

此外,当我只是尝试克隆回购

git clone ssh://git@github.com/react-navigation/bottom-tabs.git

我得到同样的错误。我能做些什么来解决这个问题吗?

标签: gitnpmreact-navigation

解决方案


推荐阅读