首页 > 解决方案 > 致命:无法从 npm 安装新依赖项上的远程存储库读取

问题描述

在开发了我的应用程序一段时间后,我丢失了本地文件。我决定从我的远程仓库克隆它们并尝试处理它们,但是,由于我仍然需要实现一些想法,我想为我的项目安装新的打包。node_modules 中已经存在的所有包的第一次 npm 安装进展顺利,没有任何问题。但是如果我尝试添加新的(例如现在我想实现 VX 图表),它会给我这个错误:

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!
npm ERR! exited with error code: 128

由于我是这个 repo 的实际所有者,我几乎不知道出了什么问题。顺便说一下,我的 git user.name 和 email 都配置好了。

标签: gitgithubnpm

解决方案


推荐阅读