我在纱线上0.20.3
目前的行为是什么?
我的部门有一个网址: "trae": "https://github.com/capaj/trae.git",
我运行yarn
我提交了https://github.com/capaj/trae.git仓库。
我运行yarn add https://github.com/capaj/trae.git
从仓库中获取最新版本
我得到:
y add https://github.com/capaj/trae.git
yarn add v0.20.3
[1/4] Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: pull
Directory: /home/capaj/.cache/yarn/.tmp/a0218de46c09eeeba3aa6e9bed4d0f17
Output:
error: Pull is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
预期的行为是什么?
可以预期的是,它可以从我的github url很好地安装trae包,而没有任何git错误。
Ubuntu 16.10,节点7.5.0
Yarn将git依赖项克隆到缓存文件夹中。
我认为它尝试第二次重用同一文件夹,这可能很难,因为Yarn可能在链接阶段将某些文件复制到缓存中。
我想如果更改HEAD,则应创建一个新的缓存文件夹而不是对其进行更新。
欢迎公关
如果遇到此问题该怎么办?
如果遇到此问题该怎么办?
我会尝试最新的每晚报告,因为这似乎可以解决。
删除tmp
目录也可以解决此问题
Directory: /Users/alexprice/Library/Caches/Yarn/v1/.tmp/a71eb20c6f8366926c96610aa7b336f4
....
$ rm -rf ~/Library/Caches/Yarn/v1/.tmp/a71eb20c6f8366926c96610aa7b336f4
最有用的评论
删除
tmp
目录也可以解决此问题