为什么 composer 在 packagist.org 上找不到我的全新包?

2022-01-21 00:00:00 php composer-php packagist

我刚刚在 packagist.org 上创建了我的第一个 组件,这是greensock-js 的分叉版本.

I've just created my first component on packagist.org, this is a forked version of greensock-js.

我将 "components/greensock-js": "1.11.*@dev" 放入我的 composer.json 文件的 require 部分,但问题是 composer 找不到这个包,说

I put "components/greensock-js": "1.11.*@dev" into the require section of my composer.json file, but the issue is composer can't find this package, saying

找不到匹配的包.

我做错了什么?

推荐答案

现在工作正常:

$ c show components/greenshock-js
name     : components/greenshock-js
descrip. : GSAP: Professional-Grade HTML5 Animation
keywords : JS, HTML5, component, animation, gsap
versions : dev-master, 1.11.x-dev

很可能您只是缺乏耐心 :) 更改可能需要 10 分钟才能传播到作曲家.随着我们改进代码,这有望在未来再次减少.

Most likely you just lacked some patience :) It can take up to 10minutes for changes to propagate to composer. This will hopefully be reduced in the future again as we improve the code.

相关文章