git - 致命:无法从 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 都配置好了。
解决方案
推荐阅读
- django - 不允许使用 NULL 的 Django 表单更新失败
- powershell - PowerShell 远程会话
- python - 模型中外键的多个对象实例
- linkedin - No-Access-Control-Allow-Origin 用于授权令牌,但 URL 已设置
- javascript - 事件目标不正确
- r - blogdown::serve_site,复制静态文件时出错
- javascript - 通过单击链接打开和关闭 div 并通过 X 按钮关闭
- python - 创建监视文件夹并导出为 txt
- google-apps-script - 如何使用当前正在编辑电子表格的 ID 告诉脚本编辑器我想将此脚本附加到此电子表格
- google-bigquery - bigquery 分区选择如何工作