npm install 安装报错 npm ERR git@github.com: Permission denied (publickey)

错误描述
复制代码
PS D:\webstorm\vue-element-admin-i18n> npm install --registry=https://registry.npm.taobao.`org```
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.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!     C:\Users\helongjie\AppData\Local\npm-cache\_logs\2022-05-10T00_50_12_034Z-debug-0.log

解决方案

在 cmd 终端中输入: 将 ssh 下载方式改成 https

复制代码
git config --global url."https://".insteadOf ssh://git
posted @   Binge-和时间做朋友  阅读(724)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
点击右上角即可分享
微信分享提示