ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git

本文介绍了一种解决使用Yarn安装过程中遇到的错误的方法。当执行安装命令时出现退出码128的错误,可以通过修改项目的git配置来解决这个问题。具体操作是在项目根目录下运行特定的git命令。

报错日志

leepandar@localhost ant-design-vue-jeecg % yarn install  
yarn install v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git

解决方案

在项目根目录下执行

git config --global url."https://".insteadOf git://

博客园
腾讯云
掘金
简书

root@pjc-virtual-machine:~# cd OpenPLC_v3 root@pjc-virtual-machine:~/OpenPLC_v3# git checkout v3.0.1 error: pathspec 'v3.0.1' did not match any file(s) known to git root@pjc-virtual-machine:~/OpenPLC_v3# ./install.sh v3.0.1 Error: You must provide a platform name as argument Usage: ./install.sh [platform] where [platform] can be win Install OpenPLC on Windows over Cygwin linux Install OpenPLC on a Debian-based Linux distribution docker Install OpenPLC in a Docker container rpi Install OpenPLC on a Raspberry Pi opi Install OpenPLC on a Orange Pi neuron Install OpenPLC on a UniPi Neuron PLC unipi Install OpenPLC on a Raspberry Pi with UniPi v1.1 PLC custom Skip all specific package installation and tries to install OpenPLC assuming your system already has all dependencies met. This option can be useful if you're trying to install OpenPLC on an unsuported Linux platform or had manually installed all the dependency packages before. root@pjc-virtual-machine:~/OpenPLC_v3# git checkout v3.0.0 && ./install.sh linux error: pathspec 'v3.0.0' did not match any file(s) known to git root@pjc-virtual-machine:~/OpenPLC_v3# git ls-remote --tags origin root@pjc-virtual-machine:~/OpenPLC_v3# git ls-remote --branches origin error: unknown option `branches' usage: git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>] [-q | --quiet] [--exit-code] [--get-url] [--symref] [<repository> [<refs>...]] -q, --quiet do not print remote URL --upload-pack <exec> path of git-upload-pack on the remote host -t, --tags limit to tags -h, --heads limit to heads --refs do not show peeled tags --get-url take url.<base>.insteadOf into account --sort <key> field name to sort on --exit-code exit with exit code 2 if no matching refs are found --symref show underlying ref in addition to the object pointed by it -o, --server-option <server-specific> option to transmit
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值