当前位置: 移动技术网 > IT编程>开发语言>JavaScript > Command failed: git -c core.longpaths=true config --get remote.origin.url

Command failed: git -c core.longpaths=true config --get remote.origin.url

2019年06月03日  | 移动技术网IT编程  | 我要评论
「Unable to Connect to GitHub.com For Cloning」 Error: Command failed: git -c core.longpaths=true config --get remote.origin.url git@gitee.com: Permissi ...

error: command failed: git -c core.longpaths=true config --get remote.origin.url
git@gitee.com: permission denied (publickey).
此处原因应该是因为网络无法透过git://方式将package download下来
github/gitee clone/push等权限不足可以尝试重新配置密钥或更换git的down方式

清除缓存: npm cache clear
告诉git download方式为: git config --global url."https://".insteadof git:// 

如果执行以上两条还有warn警告,可尝试更新npm版本
更新npm版本:npm install -g npm(npm 新版本中无需使用clear命令)

如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网