操作npm或者git出现问题Permission denied (publickey)
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\yokis\AppData\Local\npm-cache_logs\2022-03-30T05_52_22_415Z-debug-0.log
是需要给git配置SSH公钥
- 配置git账号
git config --global user.name <用户名>
git config --global user.email