我面临着安装react的问题--为我的react应用程序选择,我尝试了以下命令:
npm config set registry http://registry.npmjs.org
npm install --save react-select
我正在犯以下错误:
An unknown git error occurred
git --no-replace-objects ls-remote ssh://git@github.com/eligrey/FileSaver.js.git
git@github.com :Permission denied (publickey)
fatal: Could not read from remote repository
Please make sure you have the correct access rights and
the repository exists
目前在我的系统中安装的版本是节点(v16.17.0)、npm (8.19.2)、react (18.2.0)。
我如何解决这个问题?
谢谢
发布于 2022-09-24 06:14:28
因为https://github.com/eligrey/FileSaver.js是可访问的,所以它是一个公共存储库。
您所需要做的就是确保ssh -Tv github.com
工作正常,这意味着它会给您一个欢迎信息("Hi username! You've successfully authenticated...
")。
确保您的SSH键是已创建和注册到您的GitHub配置文件,然后再尝试您的npm命令。
https://stackoverflow.com/questions/73834923
复制相似问题