1.报错
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
问题原因:
mac升级到最新版本,需要下载xcode,否则不能使用git
解决方案:
终端输入
xcode-select --install
弹出xcode安装,解决问题
2.fatal: unable to access ‘https://gitee.com/panjiachen/vue-element-admin.git/’: Could not resolve proxy: “”
不能使用https下载,一般认为是端口号问题
改为ssh下载
3.npm i 安装报错
原因为依赖的tui-editor(富文本编辑器)更名导致的
解决方案,配置改名,太麻烦忽略掉,直接用第五步,使用修复好的源
4.终端配置和查看ssh keys
cat ~/.ssh/id_rsa.pub
怎样生成公钥
https://help.gitee.com/base/account/SSH%E5%85%AC%E9%92%A5%E8%AE%BE%E7%BD%AE
5.找到仓库地址,直接npm i
https://gitee.com/constfiv/vue-element-admin-fix-install-problem
6.node版本要控制到v12
我使用nvm控制