Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm isntall报错git@github.com: Permission denied (publickey) #4078

Open
mjy191 opened this issue Sep 30, 2022 · 3 comments
Open

npm isntall报错git@github.com: Permission denied (publickey) #4078

mjy191 opened this issue Sep 30, 2022 · 3 comments

Comments

@mjy191
Copy link

mjy191 commented Sep 30, 2022

在安装vue-admin-element的过程中经常会出现git@github.com: Permission denied (publickey)错误,原因是npm包的作者使用的ssh协议导致,本地.ssh又没有配置秘钥,导致无法下载代码到本地,强制转换ssh协议成https
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 128
npm ERR! npm ERR! An unknown git error occurred
npm ERR! npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/adobe-webplatform/eve.git
npm ERR! npm ERR! git@github.com: Permission denied (publickey).
npm ERR! npm ERR! fatal: Could not read from remote repository.
npm ERR! npm ERR!
npm ERR! npm ERR! Please make sure you have the correct access rights
npm ERR! npm ERR! and the repository exists.

解决方法如下:
git clone https://github.com/PanJiaChen/vue-element-admin.git .
git config --global url."https://github".insteadOf git://github
npm install --registry=https://registry.npm.taobao.org

@mjy191
Copy link
Author

mjy191 commented Sep 30, 2022

解决方法如下:
git clone https://github.com/PanJiaChen/vue-element-admin.git .
git config --global url."https://github".insteadOf git://github
npm install --registry=https://registry.npm.taobao.org/

@vipbo
Copy link

vipbo commented Mar 6, 2023

解决方法如下:
#3988

@PLQin
Copy link

PLQin commented Aug 12, 2023

删掉 "tui-editor" 也可以成功!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants