我在为我的React应用程序安装Reaction-Select时遇到了问题,我try 了以下命令:

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

我的系统中当前安装的版本是NODE(v16.17.0)、NPM(8.19.2)、Reaction(18.2.0)

我如何才能解决这个问题?

谢谢

推荐答案

因为https://github.com/eligrey/FileSaver.js是可以访问的,所以它是一个公共存储库.

你所需要做的就是确保ssh -Tv github.com正常工作,这意味着它会给你一个欢迎信息("Hi username! You've successfully authenticated...")

确保您的SSH密钥是createdregistered to your GitHub profile,然后再次try 您的npm命令.

Node.js相关问答推荐

在渲染上部署Node.js服务器时出错:MODULE_NOT_FOUND

Express 4.18正文解析

即使DDB键不存在, node Lambda也不会失败,并返回NULL作为结果

如何在Firebase Cloud Function v2计划函数中设置代码中的时区?

如何在.npmrc中添加 comments ?

使用AWS SDK for JavaScript V3将图像从node.js上传到s3 bucket

Node js 处理回调和 Promise

Axios TypeError:将循环 struct 转换为 JSON

如何在 Firestore 函数上使用类型模型来获取字段值

用户通过 oauth2 twitter 授权或通过Passport discord后如何重定向到 React/Vue 路由?

在 node:readline 中按 CTRL+D 时会发出什么信号?

在 `DataFrame` 上使用用户定义的可链接函数抽象出 Polars 表达式

Node.js 大文件上传到 MongoDB 阻塞了事件循环和工作池

响应发送 200 而不是 403

node.js 是否支持yields ?

如何从 Redis 保存和检索会话

Sequelize 基于关联的查找

编写可维护的事件驱动代码

如何设置 useMongoClient (Mongoose 4.11.0)?

如何阻止 babel 将this转换为undefined(并插入use strict)