错误描述
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://[email protected]/nhn/raphael.git
npm ERR! [email protected]: 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
标签:npm,git,ERR,Permission,github,报错,com
From: https://www.cnblogs.com/binbingg/p/17443770.html